mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in topic replies.
This commit is contained in:
parent
ebcd4eb97b
commit
a7090c5fba
1 changed files with 1 additions and 0 deletions
|
@ -3355,6 +3355,7 @@ void HistoryItem::createComponentsHelper(
|
||||||
: nullptr;
|
: nullptr;
|
||||||
if (!config.reply.externalPeerId
|
if (!config.reply.externalPeerId
|
||||||
&& topic
|
&& topic
|
||||||
|
&& to
|
||||||
&& topic->rootId() != to->topicRootId()) {
|
&& topic->rootId() != to->topicRootId()) {
|
||||||
config.reply.externalPeerId = replyTo.messageId.peer;
|
config.reply.externalPeerId = replyTo.messageId.peer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue