mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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