fix: hideNotificationCounters

This commit is contained in:
AlexeyZavar 2024-03-13 15:31:37 +03:00
parent 1935a2b144
commit 8bfb7e221b

View file

@ -817,11 +817,17 @@ void Widget::setupMainMenuToggle() {
Window::OtherAccountsUnreadState(
) | rpl::start_with_next([=](const Window::OthersUnreadState &state) {
const auto icon = !state.count
auto icon = !state.count
? nullptr
: !state.allMuted
? &st::dialogsMenuToggleUnread
: &st::dialogsMenuToggleUnreadMuted;
const auto settings = &AyuSettings::getInstance();
if (settings->hideNotificationCounters) {
icon = nullptr;
}
_mainMenu.toggle->setIconOverride(icon, icon);
}, _mainMenu.toggle->lifetime());
}