Fix wrong unread counter in history top bar.

This commit is contained in:
John Preston 2017-11-19 15:52:15 +04:00
parent de15da8a93
commit 04a1cff24a
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}