From 3ca28c0cf98a8c48a12944ff68f133e9ed2221fc Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 5 Jul 2019 09:42:49 +0200 Subject: [PATCH] Fix crash in unsupported message with buttons. Fixes #6212. --- Telegram/SourceFiles/history/history_message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/history_message.cpp b/Telegram/SourceFiles/history/history_message.cpp index bbcde42c8..1be8b48e1 100644 --- a/Telegram/SourceFiles/history/history_message.cpp +++ b/Telegram/SourceFiles/history/history_message.cpp @@ -492,8 +492,8 @@ HistoryMessage::HistoryMessage( UserId from, const QString &postAuthor, const TextWithEntities &textWithEntities) -: HistoryItem(history, id, flags, date, (flags & MTPDmessage::Flag::f_from_id) ? from : 0) { - createComponentsHelper(flags, replyTo, viaBotId, postAuthor, MTPReplyMarkup()); +: HistoryItem(history, id, flags & ~MTPDmessage::Flag::f_reply_markup, date, (flags & MTPDmessage::Flag::f_from_id) ? from : 0) { + createComponentsHelper(flags & ~MTPDmessage::Flag::f_reply_markup, replyTo, viaBotId, postAuthor, MTPReplyMarkup()); setText(textWithEntities); }