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

View file

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