mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't skip native notification toasts
This commit is contained in:
parent
e8edbb16ae
commit
894d6028bd
1 changed files with 7 additions and 0 deletions
|
@ -667,6 +667,13 @@ bool SkipAudio() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SkipToast() {
|
bool SkipToast() {
|
||||||
|
// Do not skip native notifications because of Do not disturb.
|
||||||
|
// They respect this setting anyway.
|
||||||
|
if ((Core::App().settings().nativeNotifications() && Supported())
|
||||||
|
|| Enforced()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return Inhibited();
|
return Inhibited();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue