mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-19 06:26:55 +00:00
Show warning message before changing phone number.
This commit is contained in:
parent
be659e2611
commit
0ce6e8a33a
@ -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<EnterPhone>());
|
||||
addButton(lang(lng_change_phone_button), [] {
|
||||
Ui::show(Box<ConfirmBox>(lang(lng_change_phone_warning), [] {
|
||||
Ui::show(Box<EnterPhone>());
|
||||
}));
|
||||
});
|
||||
addButton(lang(lng_cancel), [this] {
|
||||
closeBox();
|
||||
|
Loading…
Reference in New Issue
Block a user