mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix wrong unread counter in history top bar.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user