From c967e53913200277b29df58dd67a730ff2b88416 Mon Sep 17 00:00:00 2001 From: doliv Debian fisso <61095881+doliv8@users.noreply.github.com> Date: Sun, 21 Dec 2025 15:13:23 +0100 Subject: [PATCH] Fixed HistoryItem unread check for Forum chats --- Telegram/SourceFiles/history/history_item.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index b0aa8497e1eba..078c2f078dcf9 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -3670,6 +3670,10 @@ bool HistoryItem::unread(not_null thread) const { } else if (const auto channel = _history->peer->asChannel()) { if (!channel->isMegagroup()) { return false; + } else if (channel->isForum()) { + if (const auto topic = this->topic()) { + return topic->isServerSideUnread(this); + } } } }