From 81457693f1b7553cc2159257f7a47d6a67bcef6b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Oct 2020 11:44:03 +0300 Subject: [PATCH] Don't add comments button for inline markup messages. Fixes #8664. --- Telegram/SourceFiles/history/history_message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_message.cpp b/Telegram/SourceFiles/history/history_message.cpp index 3cb1d3b48c..70615b9d1b 100644 --- a/Telegram/SourceFiles/history/history_message.cpp +++ b/Telegram/SourceFiles/history/history_message.cpp @@ -1028,7 +1028,7 @@ void HistoryMessage::createComponents(const CreateConfig &config) { setViewsCount(config.viewsCount); if (config.mtpReplies) { setReplies(*config.mtpReplies); - } else if (isSending()) { + } else if (isSending() && !config.mtpMarkup) { if (const auto broadcast = history()->peer->asBroadcast()) { if (const auto linked = broadcast->linkedChat()) { setReplies(MTP_messageReplies(