mirror of https://github.com/procxx/kepka.git
Show notification without sound for silent message.
This commit is contained in:
parent
3f2cc01f48
commit
415d817034
|
@ -72,11 +72,6 @@ void System::schedule(
|
||||||
? item->from().get()
|
? item->from().get()
|
||||||
: nullptr;
|
: nullptr;
|
||||||
|
|
||||||
if (item->isSilent()) {
|
|
||||||
history->popNotification(item);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
history->owner().requestNotifySettings(history->peer);
|
history->owner().requestNotifySettings(history->peer);
|
||||||
if (notifyBy) {
|
if (notifyBy) {
|
||||||
history->owner().requestNotifySettings(notifyBy);
|
history->owner().requestNotifySettings(notifyBy);
|
||||||
|
@ -112,7 +107,9 @@ void System::schedule(
|
||||||
}
|
}
|
||||||
|
|
||||||
auto when = ms + delay;
|
auto when = ms + delay;
|
||||||
_whenAlerts[history].insert(when, notifyBy);
|
if (!item->isSilent()) {
|
||||||
|
_whenAlerts[history].insert(when, notifyBy);
|
||||||
|
}
|
||||||
if (Global::DesktopNotify() && !Platform::Notifications::SkipToast()) {
|
if (Global::DesktopNotify() && !Platform::Notifications::SkipToast()) {
|
||||||
auto &whenMap = _whenMaps[history];
|
auto &whenMap = _whenMaps[history];
|
||||||
if (whenMap.constFind(item->id) == whenMap.cend()) {
|
if (whenMap.constFind(item->id) == whenMap.cend()) {
|
||||||
|
|
Loading…
Reference in New Issue