2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

History::dialogs and Histories::unread are private now, counting only chats from dialogs list to the badge

This commit is contained in:
John Preston
2016-02-28 14:58:30 +03:00
parent 7338c3e21e
commit 798f800913
12 changed files with 213 additions and 97 deletions

View File

@@ -273,7 +273,7 @@ void ApiWrap::gotChatFull(PeerData *peer, const MTPmessages_ChatFull &result, mt
if (!h->isEmpty()) {
h->clear(true);
}
if (!hto->dialogs.isEmpty() && !h->dialogs.isEmpty()) {
if (hto->inChatList() && h->inChatList()) {
App::removeDialog(h);
}
}