2
0
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:
John Preston
2015-11-16 19:04:37 +03:00
parent 497602f47e
commit ca34a09f20
14 changed files with 359 additions and 140 deletions

View File

@@ -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;
}