Fix possible crash in topic replies.

This commit is contained in:
John Preston 2023-11-07 08:35:35 +04:00
parent ebcd4eb97b
commit a7090c5fba

View file

@ -3355,6 +3355,7 @@ void HistoryItem::createComponentsHelper(
: nullptr;
if (!config.reply.externalPeerId
&& topic
&& to
&& topic->rootId() != to->topicRootId()) {
config.reply.externalPeerId = replyTo.messageId.peer;
}