mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
mediaview, audioplayer and profilewidget display united media in group and migrated supergroup
This commit is contained in:
@@ -2825,10 +2825,11 @@ bool CreateToast(PeerData *peer, int32 msgId, bool showpix, const QString &title
|
||||
}
|
||||
hr = toastNotifier->Show(toast.Get());
|
||||
if (!SUCCEEDED(hr)) {
|
||||
if (i->isEmpty()) toastNotifications.erase(i);
|
||||
i = toastNotifications.find(peer->id);
|
||||
if (i != toastNotifications.cend() && i->isEmpty()) toastNotifications.erase(i);
|
||||
return false;
|
||||
}
|
||||
i->insert(msgId, toast);
|
||||
toastNotifications[peer->id].insert(msgId, toast);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user