From 8dcb69ccdd1d844a6691914708f3c6638cc2e54d Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 1 Mar 2023 14:49:15 +0400 Subject: [PATCH] Fix switch-inline bot buttons in topics. --- Telegram/SourceFiles/history/history_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index d8d9e317b..d1afb5455 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -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; }