Fix switch-inline bot buttons in topics.

This commit is contained in:
John Preston 2023-03-01 14:49:15 +04:00
parent 856c537335
commit 8dcb69ccdd
1 changed files with 1 additions and 1 deletions

View File

@ -1782,7 +1782,7 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(const QString &query, U
const auto to = bot->isBot()
? bot->botInfo->inlineReturnTo
: Dialogs::EntryState();
const auto history = to.key.history();
const auto history = to.key.owningHistory();
if (!history) {
return false;
}