mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Show notification without sound for silent message.
This commit is contained in:
@@ -72,11 +72,6 @@ void System::schedule(
|
||||
? item->from().get()
|
||||
: nullptr;
|
||||
|
||||
if (item->isSilent()) {
|
||||
history->popNotification(item);
|
||||
return;
|
||||
}
|
||||
|
||||
history->owner().requestNotifySettings(history->peer);
|
||||
if (notifyBy) {
|
||||
history->owner().requestNotifySettings(notifyBy);
|
||||
@@ -112,7 +107,9 @@ void System::schedule(
|
||||
}
|
||||
|
||||
auto when = ms + delay;
|
||||
_whenAlerts[history].insert(when, notifyBy);
|
||||
if (!item->isSilent()) {
|
||||
_whenAlerts[history].insert(when, notifyBy);
|
||||
}
|
||||
if (Global::DesktopNotify() && !Platform::Notifications::SkipToast()) {
|
||||
auto &whenMap = _whenMaps[history];
|
||||
if (whenMap.constFind(item->id) == whenMap.cend()) {
|
||||
|
Reference in New Issue
Block a user