2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Correctly count 'other accounts unread' in menu.

This commit is contained in:
John Preston
2024-09-16 13:02:38 +04:00
parent 592d46c8f2
commit 3658b32db5
4 changed files with 23 additions and 12 deletions

View File

@@ -891,6 +891,7 @@ void Widget::setupMainMenuToggle() {
}, lifetime());
Window::OtherAccountsUnreadState(
&controller()->session().account()
) | rpl::start_with_next([=](const Window::OthersUnreadState &state) {
const auto icon = !state.count
? nullptr