mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix unread counters in filters with monoforums.
This commit is contained in:
@@ -2334,6 +2334,9 @@ History *History::migrateSibling() const {
|
||||
Dialogs::UnreadState History::chatListUnreadState() const {
|
||||
if (const auto forum = peer->forum()) {
|
||||
return AdjustedForumUnreadState(forum->topicsList()->unreadState());
|
||||
} else if (const auto monoforum = peer->monoforum()) {
|
||||
return AdjustedForumUnreadState(
|
||||
monoforum->chatsList()->unreadState());
|
||||
}
|
||||
return computeUnreadState();
|
||||
}
|
||||
|
Reference in New Issue
Block a user