From a7090c5fbaf2d47216ab99f9bb0a3331ea2d6daf Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 7 Nov 2023 08:35:35 +0400 Subject: [PATCH] Fix possible crash in topic replies. --- Telegram/SourceFiles/history/history_item.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 18235872c..1bd5d52c2 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -3355,6 +3355,7 @@ void HistoryItem::createComponentsHelper( : nullptr; if (!config.reply.externalPeerId && topic + && to && topic->rootId() != to->topicRootId()) { config.reply.externalPeerId = replyTo.messageId.peer; }