From 910b6d88791ac953474dd0feaf125afdbaaeca02 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 4 Jun 2025 18:13:21 +0400 Subject: [PATCH] Fix unread mark badge in new forums layout. --- .../history/view/history_view_subsection_tabs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp b/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp index 3f2370b75d..66790e7051 100644 --- a/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp +++ b/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp @@ -635,7 +635,7 @@ void SubsectionTabs::refreshSlice() { const auto push = [&](not_null thread) { const auto topic = thread->asTopic(); const auto sublist = thread->asSublist(); - const auto badges = [&] { + auto badges = [&] { if (!topic && !sublist) { return Dialogs::BadgesState(); } else if (thread->chatListUnreadState().known) { @@ -650,6 +650,10 @@ void SubsectionTabs::refreshSlice() { } return thread->chatListBadgesState(); }(); + if (topic) { + // Don't show the small indicators for non-visited unread topics. + badges.unread = false; + } slice.push_back({ .thread = thread, .badges = badges,