mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +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 {
|
Dialogs::UnreadState History::chatListUnreadState() const {
|
||||||
if (const auto forum = peer->forum()) {
|
if (const auto forum = peer->forum()) {
|
||||||
return AdjustedForumUnreadState(forum->topicsList()->unreadState());
|
return AdjustedForumUnreadState(forum->topicsList()->unreadState());
|
||||||
|
} else if (const auto monoforum = peer->monoforum()) {
|
||||||
|
return AdjustedForumUnreadState(
|
||||||
|
monoforum->chatsList()->unreadState());
|
||||||
}
|
}
|
||||||
return computeUnreadState();
|
return computeUnreadState();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user