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

All read history done through Data::Histories.

This commit is contained in:
John Preston
2020-02-18 16:15:43 +04:00
parent b0e1ae3948
commit 9cccea9a87
7 changed files with 48 additions and 104 deletions

View File

@@ -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,