From b77756ce1282d5c204938786d5a69722205a5ae1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Oct 2022 11:43:24 +0400 Subject: [PATCH] Highlight active topic in chats list. --- .../history/view/history_view_replies_section.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp index 2cbdaf8946..8544851c35 100644 --- a/Telegram/SourceFiles/history/view/history_view_replies_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_replies_section.cpp @@ -1540,6 +1540,12 @@ not_null RepliesWidget::history() const { } Dialogs::RowDescriptor RepliesWidget::activeChat() const { + if (_topic) { + return { + _topic, + FullMsgId(_history->peer->id, ShowAtUnreadMsgId), + }; + } return { _history, FullMsgId(_history->peer->id, ShowAtUnreadMsgId)