mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix sending old topic messages.
This commit is contained in:
parent
080a8d7ee5
commit
e9a6bee046
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ MTPInputReplyTo ReplyToForMTP(
|
||||||
? replyingToTopic->rootId()
|
? replyingToTopic->rootId()
|
||||||
: Data::ForumTopic::kGeneralId)
|
: Data::ForumTopic::kGeneralId)
|
||||||
: (to ? to->topicRootId() : 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()
|
? to->topicRootId()
|
||||||
: replyingToTopicId;
|
: replyingToTopicId;
|
||||||
const auto external = replyTo.messageId
|
const auto external = replyTo.messageId
|
||||||
|
|
Loading…
Add table
Reference in a new issue