2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Mark topics as read on reply from notification.

This commit is contained in:
John Preston
2022-10-25 13:05:14 +04:00
parent ef3ed760b1
commit 06d1644baa
4 changed files with 14 additions and 3 deletions

View File

@@ -254,6 +254,10 @@ void ForumTopic::setRealRootId(MsgId realId) {
}
}
void ForumTopic::readTillEnd() {
_replies->readTill(_lastKnownServerMessageId);
}
void ForumTopic::applyTopic(const MTPDforumTopic &data) {
Expects(_rootId == data.vid().v);