From df66162bca25532e908df1d5d1de5cd72ae8a8ed Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 31 Dec 2021 17:31:03 +0300 Subject: [PATCH] Destroy comments button when switched off. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 73fb5b38b6..c871c5f8ee 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -2785,6 +2785,8 @@ int Message::resizeContentGetHeight(int newWidth) { if (item->repliesAreComments() || item->externalReply()) { newHeight += st::historyCommentsButtonHeight; + } else { + _comments = nullptr; } newHeight += viewButtonHeight(); } else if (mediaDisplayed) {