mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
All read history done through Data::Histories.
This commit is contained in:
@@ -303,7 +303,7 @@ void Filler::addToggleUnreadMark() {
|
||||
const auto markAsRead = isUnread(peer);
|
||||
const auto handle = [&](not_null<History*> history) {
|
||||
if (markAsRead) {
|
||||
peer->session().api().readServerHistory(history);
|
||||
history->readInbox();
|
||||
} else {
|
||||
peer->session().api().changeDialogUnreadMark(
|
||||
history,
|
||||
|
Reference in New Issue
Block a user