diff --git a/Telegram/SourceFiles/ui/widgets/chat_filters_tabs_strip.cpp b/Telegram/SourceFiles/ui/widgets/chat_filters_tabs_strip.cpp index e8080d25ef..00d8d8e306 100644 --- a/Telegram/SourceFiles/ui/widgets/chat_filters_tabs_strip.cpp +++ b/Telegram/SourceFiles/ui/widgets/chat_filters_tabs_strip.cpp @@ -38,6 +38,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include +// AyuGram includes +#include "ayu/ayu_settings.h" + + namespace Ui { namespace { @@ -241,9 +245,15 @@ not_null AddChatFiltersTabsStrip( const auto chats = state.chats; const auto chatsMuted = state.chatsMuted; const auto muted = (chatsMuted + state.marksMuted); - const auto count = (chats + state.marks) + auto count = (chats + state.marks) - (includeMuted ? 0 : muted); const auto isMuted = includeMuted && (count == muted); + + const auto &settings = AyuSettings::getInstance(); + if (settings.hideNotificationCounters) { + count = 0; + } + slider->setUnreadCount(i, count, isMuted); slider->fitWidthToSections(); }, state->reorderLifetime);