From 0ce6e8a33ad2059dbfd7e0f5b4070b5a667becb0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 23 Mar 2017 17:58:28 +0300 Subject: [PATCH] Show warning message before changing phone number. --- Telegram/SourceFiles/boxes/change_phone_box.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/change_phone_box.cpp b/Telegram/SourceFiles/boxes/change_phone_box.cpp index b61e9f765..2d6749f46 100644 --- a/Telegram/SourceFiles/boxes/change_phone_box.cpp +++ b/Telegram/SourceFiles/boxes/change_phone_box.cpp @@ -304,8 +304,10 @@ bool ChangePhoneBox::EnterCode::sendCodeFail(const RPCError &error) { void ChangePhoneBox::prepare() { setTitle(lang(lng_change_phone_title)); - addButton(lang(lng_change_phone_button), [this] { - Ui::show(Box()); + addButton(lang(lng_change_phone_button), [] { + Ui::show(Box(lang(lng_change_phone_warning), [] { + Ui::show(Box()); + })); }); addButton(lang(lng_cancel), [this] { closeBox();