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

Move requestDialogEntry to Histories.

This commit is contained in:
John Preston
2020-02-21 11:58:50 +04:00
parent 9bdcd08233
commit db322cc19a
16 changed files with 198 additions and 183 deletions

View File

@@ -304,9 +304,9 @@ void Filler::addToggleUnreadMark() {
const auto markAsRead = isUnread(peer);
const auto handle = [&](not_null<History*> history) {
if (markAsRead) {
peer->session().data().histories().readInbox(history);
peer->owner().histories().readInbox(history);
} else {
peer->session().api().changeDialogUnreadMark(
peer->owner().histories().changeDialogUnreadMark(
history,
!markAsRead);
}