mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Fixed switch inline query in channel direct messages.
This commit is contained in:
@@ -2464,6 +2464,8 @@ bool SessionController::switchInlineQuery(
|
||||
if (to.section == Section::Replies) {
|
||||
const auto commentId = MsgId();
|
||||
showRepliesForMessage(history, topicRootId, commentId, params);
|
||||
} else if (const auto sublist = thread->asSublist()) {
|
||||
showSublist(sublist, MsgId(), params);
|
||||
} else {
|
||||
showPeerHistory(history->peer, params);
|
||||
}
|
||||
@@ -2479,8 +2481,13 @@ bool SessionController::switchInlineQuery(
|
||||
.key = thread,
|
||||
.section = (thread->asTopic()
|
||||
? Dialogs::EntryState::Section::Replies
|
||||
: thread->asSublist()
|
||||
? Dialogs::EntryState::Section::SavedSublist
|
||||
: Dialogs::EntryState::Section::History),
|
||||
.currentReplyTo = { .topicRootId = thread->topicRootId() },
|
||||
.currentReplyTo = {
|
||||
.topicRootId = thread->topicRootId(),
|
||||
.monoforumPeerId = thread->monoforumPeerId(),
|
||||
},
|
||||
};
|
||||
return switchInlineQuery(entryState, bot, query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user