From a08436ecd2899a069947db86e3ef888e7efe36a5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 5 Jun 2025 11:04:23 +0400 Subject: [PATCH] Fix unread counters in filters with monoforums. --- Telegram/SourceFiles/history/history.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index a1731627a6..40ba51d43e 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2334,6 +2334,9 @@ History *History::migrateSibling() const { Dialogs::UnreadState History::chatListUnreadState() const { if (const auto forum = peer->forum()) { return AdjustedForumUnreadState(forum->topicsList()->unreadState()); + } else if (const auto monoforum = peer->monoforum()) { + return AdjustedForumUnreadState( + monoforum->chatsList()->unreadState()); } return computeUnreadState(); }