mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Attempt to fix monoforum muted setting.
This commit is contained in:
@@ -878,6 +878,12 @@ Dialogs::BadgesState SavedSublist::chatListBadgesState() const {
|
|||||||
> _parent->owningHistory()->inboxReadTillId());
|
> _parent->owningHistory()->inboxReadTillId());
|
||||||
result.unreadMuted = muted();
|
result.unreadMuted = muted();
|
||||||
}
|
}
|
||||||
|
if (_parent->owningHistory()->muted()) {
|
||||||
|
result.unreadMuted
|
||||||
|
= result.mentionMuted
|
||||||
|
= result.reactionMuted
|
||||||
|
= true;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2358,8 +2358,14 @@ 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()) {
|
} else if (const auto monoforum = peer->monoforum()) {
|
||||||
return AdjustedForumUnreadState(
|
auto state = monoforum->chatsList()->unreadState();
|
||||||
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();
|
return computeUnreadState();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user