mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 01:23:09 +00:00
Fix wrong unread counter in history top bar.
This commit is contained in:
parent
de15da8a93
commit
04a1cff24a
@ -576,9 +576,7 @@ void HistoryTopBarWidget::updateUnreadBadge() {
|
||||
// Do not include currently shown chat in the top bar unread counter.
|
||||
if (auto historyShown = App::historyLoaded(_historyPeer)) {
|
||||
auto shownUnreadCount = historyShown->unreadCount();
|
||||
if (!historyShown->mute() || Global::IncludeMuted()) {
|
||||
fullCounter -= shownUnreadCount;
|
||||
}
|
||||
fullCounter -= shownUnreadCount;
|
||||
if (historyShown->mute()) {
|
||||
mutedCount -= shownUnreadCount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user