mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Leave unread chats in filter until closed.
This commit is contained in:
@@ -257,7 +257,13 @@ const rpl::variable<Data::Folder*> &SessionController::openedFolder() const {
|
||||
}
|
||||
|
||||
void SessionController::setActiveChatEntry(Dialogs::RowDescriptor row) {
|
||||
if (const auto history = _activeChatEntry.current().key.history()) {
|
||||
history->setFakeUnreadWhileOpened(false);
|
||||
}
|
||||
_activeChatEntry = row;
|
||||
if (const auto history = row.key.history()) {
|
||||
history->setFakeUnreadWhileOpened(true);
|
||||
}
|
||||
if (session().supportMode()) {
|
||||
pushToChatEntryHistory(row);
|
||||
}
|
||||
|
Reference in New Issue
Block a user