mirror of https://github.com/procxx/kepka.git
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.
|
// Do not include currently shown chat in the top bar unread counter.
|
||||||
if (auto historyShown = App::historyLoaded(_historyPeer)) {
|
if (auto historyShown = App::historyLoaded(_historyPeer)) {
|
||||||
auto shownUnreadCount = historyShown->unreadCount();
|
auto shownUnreadCount = historyShown->unreadCount();
|
||||||
if (!historyShown->mute() || Global::IncludeMuted()) {
|
fullCounter -= shownUnreadCount;
|
||||||
fullCounter -= shownUnreadCount;
|
|
||||||
}
|
|
||||||
if (historyShown->mute()) {
|
if (historyShown->mute()) {
|
||||||
mutedCount -= shownUnreadCount;
|
mutedCount -= shownUnreadCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue