mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-21 13:12:50 +02:00
Fix unread counters in filters with monoforums.
This commit is contained in:
parent
e92adf94a7
commit
a08436ecd2
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue