Show notification without sound for silent message.

This commit is contained in:
John Preston 2019-07-26 18:09:42 +02:00
parent 3f2cc01f48
commit 415d817034
1 changed files with 3 additions and 6 deletions

View File

@ -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()) {