From 04a1cff24af8e070227e8f66c273964cb7cca75f Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 19 Nov 2017 15:52:15 +0400 Subject: [PATCH] Fix wrong unread counter in history top bar. --- Telegram/SourceFiles/history/history_top_bar_widget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history_top_bar_widget.cpp b/Telegram/SourceFiles/history/history_top_bar_widget.cpp index 770cd78362..d6d56e8453 100644 --- a/Telegram/SourceFiles/history/history_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/history_top_bar_widget.cpp @@ -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; }