Disable attach bot share phone command for now.

This commit is contained in:
John Preston 2022-07-25 18:48:26 +03:00
parent 136eaee8d5
commit af54721f07
4 changed files with 7 additions and 1 deletions

View file

@ -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());

View file

@ -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
};

View file

@ -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() {

@ -1 +1 @@
Subproject commit a5d7b23a638e6c2d9bffa97bf40d5d7559a926c8
Subproject commit d8b94feb9dacaa80e6559c3ebd625b323f59662d