2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Handle PHONE_NUMBER_BANNED in ChangePhoneBox.

This commit is contained in:
John Preston
2019-06-05 20:43:21 +03:00
parent b9bd937aaa
commit 4379fa2297
6 changed files with 69 additions and 42 deletions

View File

@@ -146,9 +146,12 @@ bool SignupWidget::nameSubmitFail(const RPCError &error) {
if (err == qstr("PHONE_NUMBER_FLOOD")) {
Ui::show(Box<InformBox>(lang(lng_error_phone_flood)));
return true;
} else if (err == qstr("PHONE_NUMBER_INVALID") || err == qstr("PHONE_CODE_EXPIRED") ||
err == qstr("PHONE_CODE_EMPTY") || err == qstr("PHONE_CODE_INVALID") ||
err == qstr("PHONE_NUMBER_OCCUPIED")) {
} else if (err == qstr("PHONE_NUMBER_INVALID")
|| err == qstr("PHONE_NUMBER_BANNED")
|| err == qstr("PHONE_CODE_EXPIRED")
|| err == qstr("PHONE_CODE_EMPTY")
|| err == qstr("PHONE_CODE_INVALID")
|| err == qstr("PHONE_NUMBER_OCCUPIED")) {
goBack();
return true;
} else if (err == "FIRSTNAME_INVALID") {