mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix webview switch_inline to the same chat.
This commit is contained in:
@@ -456,14 +456,12 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
|
||||
return false;
|
||||
}();
|
||||
if (!fastSwitchDone) {
|
||||
const auto botAndQuery = '@'
|
||||
+ bot->username()
|
||||
+ ' '
|
||||
+ QString::fromUtf8(button->data);
|
||||
const auto query = QString::fromUtf8(button->data);
|
||||
const auto chosen = [=](not_null<Data::Thread*> thread) {
|
||||
return controller->content()->inlineSwitchChosen(
|
||||
return controller->switchInlineQuery(
|
||||
thread,
|
||||
botAndQuery);
|
||||
bot,
|
||||
query);
|
||||
};
|
||||
Window::ShowChooseRecipientBox(
|
||||
controller,
|
||||
|
Reference in New Issue
Block a user