mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Encapsulated unreadCount and mute fields in History.
Support for hiding all muted chats from the list.
This commit is contained in:
@@ -557,7 +557,7 @@ namespace {
|
||||
if (!h->isEmpty()) {
|
||||
h->clear(true);
|
||||
}
|
||||
if (hto->inChatList() && h->inChatList()) {
|
||||
if (hto->inChatList(Dialogs::Mode::All) && h->inChatList(Dialogs::Mode::All)) {
|
||||
App::removeDialog(h);
|
||||
}
|
||||
}
|
||||
@@ -1137,8 +1137,8 @@ namespace {
|
||||
} else {
|
||||
if (channelHistory) {
|
||||
channelHistory->messageWithIdDeleted(i->v);
|
||||
if (channelHistory->unreadCount > 0 && i->v >= channelHistory->inboxReadBefore) {
|
||||
channelHistory->setUnreadCount(channelHistory->unreadCount - 1);
|
||||
if (channelHistory->unreadCount() > 0 && i->v >= channelHistory->inboxReadBefore) {
|
||||
channelHistory->setUnreadCount(channelHistory->unreadCount() - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user