mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00: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.
|
// 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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user