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