2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve published scheduled notifications.

This commit is contained in:
John Preston
2019-08-28 21:20:49 +03:00
parent 87addd41b1
commit 07f45b7eab
14 changed files with 239 additions and 102 deletions

View File

@@ -1658,7 +1658,10 @@ void History::inboxRead(MsgId upTo, std::optional<int> stillUnread) {
}
_firstUnreadView = nullptr;
session().notifications().clearFromHistory(this);
if (!peer->isSelf()) {
// Only reminders generate notifications in Saved Messages.
session().notifications().clearFromHistory(this);
}
}
void History::inboxRead(not_null<const HistoryItem*> wasRead) {
@@ -1832,7 +1835,7 @@ void History::getNextFirstUnreadMessage() {
}
MsgId History::nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
return owner().nextNonHistoryEntryId();
}
bool History::folderKnown() const {