Skip to content

Commit

Permalink
Fix possible crash in topic replies.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 7, 2023
1 parent ebcd4eb commit a7090c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/history/history_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3355,6 +3355,7 @@ void HistoryItem::createComponentsHelper(
: nullptr;
if (!config.reply.externalPeerId
&& topic
&& to
&& topic->rootId() != to->topicRootId()) {
config.reply.externalPeerId = replyTo.messageId.peer;
}
Expand Down

0 comments on commit a7090c5

Please sign in to comment.