2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Track mentions / reactions together with unread.

This commit is contained in:
John Preston
2022-10-20 12:57:12 +04:00
parent 5356f6cd2c
commit 4910a60499
22 changed files with 407 additions and 478 deletions

View File

@@ -579,10 +579,10 @@ void MainMenu::setupArchive() {
return folder->owner().chatsList(folder)->unreadStateChanges();
}) | rpl::flatten_latest() | rpl::to_empty) | rpl::map([=] {
const auto loaded = folder();
return Badge::UnreadBadge{
loaded ? loaded->chatListUnreadCount() : 0,
true,
};
const auto state = loaded
? loaded->chatListBadgesState()
: Dialogs::BadgesState();
return Badge::UnreadBadge{ state.unreadCounter, true };
}));
controller->session().data().chatsListChanges(