2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -65,7 +65,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_drafts.h"
#include "data/data_forum.h"
#include "data/data_forum_topic.h"
#include "data/data_replies_list.h"
#include "data/data_user.h"
#include "data/data_scheduled_messages.h"
#include "data/data_histories.h"
@@ -134,7 +133,7 @@ void MarkAsReadThread(not_null<Data::Thread*> thread) {
}
}
} else if (const auto topic = thread->asTopic()) {
topic->replies()->readTill(topic->lastKnownServerMessageId());
topic->readTillEnd();
}
}