2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix switch_inline_query with same_peer in topics.

Fixes #27290.
This commit is contained in:
John Preston
2024-11-21 11:41:46 +04:00
parent 9532a2e3da
commit e3d9216b10
2 changed files with 14 additions and 22 deletions

View File

@@ -1866,6 +1866,10 @@ bool SessionController::switchInlineQuery(
int(textWithTags.text.size()),
Ui::kQFixedMax
};
if (to.currentReplyTo.messageId.msg == to.currentReplyTo.topicRootId
&& to.currentReplyTo.quote.empty()) {
to.currentReplyTo.messageId.msg = MsgId();
}
auto draft = std::make_unique<Data::Draft>(
textWithTags,
to.currentReplyTo,