From c15f89c260fce3322a94f3497bcc169d9b2082bc Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 5 Nov 2022 18:26:20 +0400 Subject: [PATCH] Hide reply bars to the topic root in topic pinned. --- .../SourceFiles/history/view/history_view_pinned_section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_pinned_section.cpp b/Telegram/SourceFiles/history/view/history_view_pinned_section.cpp index cd67b19a6..575c0eee0 100644 --- a/Telegram/SourceFiles/history/view/history_view_pinned_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_pinned_section.cpp @@ -559,7 +559,7 @@ void PinnedWidget::listUpdateDateLink( } bool PinnedWidget::listElementHideReply(not_null view) { - return false; + return (view->data()->replyToId() == _thread->topicRootId()); } bool PinnedWidget::listElementShownUnread(not_null view) {