2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

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;
}