From 24e9a3ea595cd05391839ba15bf7bf69435df092 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 15 Mar 2024 20:27:54 +0400 Subject: [PATCH] Bot close confirm closes only by Close button. --- Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index ed57fdf2b..a84890032 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -1073,7 +1073,7 @@ void Panel::closeWithConfirmation() { }); if (!weak) { return; - } else if (result.id != "cancel") { + } else if (result.id == "close") { _delegate->botClose(); } else { _closeWithConfirmationScheduled = false;