From 15d6988511f184359135f9951faf0092560a21ad Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 5 Jul 2022 09:11:22 +0400 Subject: [PATCH] Don't clear history stack on sendBotCommand. --- Telegram/SourceFiles/mainwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index e534d53a9..b66e8a70f 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -775,7 +775,7 @@ void MainWidget::sendBotCommand(Bot::SendCommandRequest request) { if (type == Window::SectionActionResult::Fallback) { ui_showPeerHistory( request.peer->id, - SectionShow::Way::ClearStack, + SectionShow::Way::Forward, ShowAtTheEndMsgId); _history->sendBotCommand(request); }