mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Replaced unreadBadge/Muted with unreadWithMentionsBadge/Muted.
This commit is contained in:
@@ -3002,12 +3002,17 @@ HistoryItem *Session::addNewMessage(
|
||||
return result;
|
||||
}
|
||||
|
||||
int Session::unreadBadge() const {
|
||||
return computeUnreadBadge(_chatsList.unreadState());
|
||||
int Session::unreadWithMentionsBadge() const {
|
||||
auto state = _chatsList.unreadState();
|
||||
if (state.mentions) {
|
||||
state.messages -= state.mentions;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
int Session::unreadBadgeIgnoreOne(Dialogs::Key key) const {
|
||||
|
||||
Reference in New Issue
Block a user