2
0
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:
John Preston
2019-01-22 17:05:06 +04:00
parent ebc2043055
commit bf87de3706
5 changed files with 17 additions and 19 deletions

View File

@@ -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;
}