From af54721f07e9524e43915c078c84b721420f5441 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 25 Jul 2022 18:48:26 +0300 Subject: [PATCH] Disable attach bot share phone command for now. --- Telegram/SourceFiles/core/ui_integration.cpp | 2 ++ Telegram/SourceFiles/core/ui_integration.h | 2 ++ Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 2 ++ Telegram/lib_ui | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/ui_integration.cpp b/Telegram/SourceFiles/core/ui_integration.cpp index 050275d05..21140014a 100644 --- a/Telegram/SourceFiles/core/ui_integration.cpp +++ b/Telegram/SourceFiles/core/ui_integration.cpp @@ -353,6 +353,7 @@ QString UiIntegration::phrasePanelCloseAnyway() { return tr::lng_bot_close_warning_sure(tr::now); } +#if 0 // disabled for now QString UiIntegration::phraseBotSharePhone() { return tr::lng_bot_share_phone(tr::now); } @@ -364,6 +365,7 @@ QString UiIntegration::phraseBotSharePhoneTitle() { QString UiIntegration::phraseBotSharePhoneConfirm() { return tr::lng_bot_share_phone_confirm(tr::now); } +#endif bool OpenGLLastCheckFailed() { return QFile::exists(OpenGLCheckFilePath()); diff --git a/Telegram/SourceFiles/core/ui_integration.h b/Telegram/SourceFiles/core/ui_integration.h index a91aa1a4b..d3f4bf0cd 100644 --- a/Telegram/SourceFiles/core/ui_integration.h +++ b/Telegram/SourceFiles/core/ui_integration.h @@ -80,9 +80,11 @@ public: QString phrasePanelCloseWarning() override; QString phrasePanelCloseUnsaved() override; QString phrasePanelCloseAnyway() override; +#if 0 // disabled for now QString phraseBotSharePhone() override; QString phraseBotSharePhoneTitle() override; QString phraseBotSharePhoneConfirm() override; +#endif }; diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 9c00fd2cb..7b6fb478a 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -822,6 +822,7 @@ void Panel::openPopup(const QJsonObject &args) { } void Panel::requestPhone() { +#if 0 // disabled for now using Button = Webview::PopupArgs::Button; const auto widget = _webview->window.widget(); const auto weak = base::make_weak(this); @@ -845,6 +846,7 @@ void Panel::requestPhone() { ? "\"phone_number\": \"" + _phone + "\"" : QString())); } +#endif } void Panel::scheduleCloseWithConfirmation() { diff --git a/Telegram/lib_ui b/Telegram/lib_ui index a5d7b23a6..d8b94feb9 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit a5d7b23a638e6c2d9bffa97bf40d5d7559a926c8 +Subproject commit d8b94feb9dacaa80e6559c3ebd625b323f59662d