2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 17:35:36 +00:00

Fix scheduled notifications on inbox read.

This commit is contained in:
John Preston
2019-08-30 17:06:21 +03:00
parent d95e54cb1a
commit 3715fa4b1e
13 changed files with 60 additions and 46 deletions

View File

@@ -313,7 +313,7 @@ public:
bool hideNameAndPhoto,
bool hideReplyButton);
void clearAll();
void clearFromHistory(History *history);
void clearFromHistory(not_null<History*> history);
void clearNotification(PeerId peerId, MsgId msgId);
bool hasPoorSupport() const {
@@ -494,7 +494,7 @@ void Manager::Private::clearAll() {
}
}
void Manager::Private::clearFromHistory(History *history) {
void Manager::Private::clearFromHistory(not_null<History*> history) {
for (auto i = _queuedNotifications.begin(); i != _queuedNotifications.end();) {
if (i->peer == history->peer) {
i = _queuedNotifications.erase(i);
@@ -573,7 +573,7 @@ void Manager::doClearAllFast() {
_private->clearAll();
}
void Manager::doClearFromHistory(History *history) {
void Manager::doClearFromHistory(not_null<History*> history) {
_private->clearFromHistory(history);
}
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION