mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Returned unreadBadge/Muted but keep unreadWithMentionsBadge/Muted.
This commit is contained in:
@@ -3002,6 +3002,10 @@ HistoryItem *Session::addNewMessage(
|
||||
return result;
|
||||
}
|
||||
|
||||
int Session::unreadBadge() const {
|
||||
return computeUnreadBadge(_chatsList.unreadState());
|
||||
}
|
||||
|
||||
int Session::unreadWithMentionsBadge() const {
|
||||
auto state = _chatsList.unreadState();
|
||||
if (state.mentions) {
|
||||
@@ -3010,6 +3014,10 @@ int Session::unreadWithMentionsBadge() const {
|
||||
return computeUnreadBadge(state) + state.mentions;
|
||||
}
|
||||
|
||||
bool Session::unreadBadgeMuted() const {
|
||||
return computeUnreadBadgeMuted(_chatsList.unreadState());
|
||||
}
|
||||
|
||||
bool Session::unreadWithMentionsBadgeMuted() const {
|
||||
const auto state = _chatsList.unreadState();
|
||||
return !state.mentions && computeUnreadBadgeMuted(state);
|
||||
|
||||
Reference in New Issue
Block a user