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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user