mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Attempt to fix monoforum muted setting.
This commit is contained in:
@@ -2358,8 +2358,14 @@ 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());
|
||||
auto state = monoforum->chatsList()->unreadState();
|
||||
if (muted()) {
|
||||
state.chatsMuted = state.chats;
|
||||
state.marksMuted = state.marks;
|
||||
state.messagesMuted = state.messages;
|
||||
state.reactionsMuted = state.reactions;
|
||||
}
|
||||
return AdjustedForumUnreadState(state);
|
||||
}
|
||||
return computeUnreadState();
|
||||
}
|
||||
|
Reference in New Issue
Block a user