Fix sending old topic messages.

This commit is contained in:
John Preston 2024-12-12 12:18:43 +04:00
parent 080a8d7ee5
commit e9a6bee046

View file

@ -55,7 +55,8 @@ MTPInputReplyTo ReplyToForMTP(
? replyingToTopic->rootId()
: Data::ForumTopic::kGeneralId)
: (to ? to->topicRootId() : Data::ForumTopic::kGeneralId);
const auto replyToTopicId = to
const auto replyToTopicId = (to
&& (to->history() != history || to->id != replyingToTopicId))
? to->topicRootId()
: replyingToTopicId;
const auto external = replyTo.messageId