mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-21 13:12:50 +02:00
Attempt to fix monoforum muted setting.
This commit is contained in:
parent
b965aecc6c
commit
b2d7342b9e
2 changed files with 14 additions and 2 deletions
|
@ -878,6 +878,12 @@ Dialogs::BadgesState SavedSublist::chatListBadgesState() const {
|
|||
> _parent->owningHistory()->inboxReadTillId());
|
||||
result.unreadMuted = muted();
|
||||
}
|
||||
if (_parent->owningHistory()->muted()) {
|
||||
result.unreadMuted
|
||||
= result.mentionMuted
|
||||
= result.reactionMuted
|
||||
= true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue