mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Fix removing chats from dialogs.
This commit is contained in:
@@ -2304,6 +2304,10 @@ bool History::shouldBeInChatList() const {
|
||||
} else if (const auto feed = channel->feed()) {
|
||||
return !feed->needUpdateInChatList();
|
||||
}
|
||||
} else if (const auto chat = peer->asChat()) {
|
||||
return chat->amIn()
|
||||
|| !lastMessageKnown()
|
||||
|| (lastMessage() != nullptr);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user