mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Replaced some qstr with u""_q literal.
This commit is contained in:
@@ -270,11 +270,11 @@ void ChangePhone::EnterPhone::sendPhoneFail(
|
||||
const QString &phoneNumber) {
|
||||
if (MTP::IsFloodError(error)) {
|
||||
showError(tr::lng_flood_error(tr::now));
|
||||
} else if (error.type() == qstr("PHONE_NUMBER_INVALID")) {
|
||||
} else if (error.type() == u"PHONE_NUMBER_INVALID"_q) {
|
||||
showError(tr::lng_bad_phone(tr::now));
|
||||
} else if (error.type() == qstr("PHONE_NUMBER_BANNED")) {
|
||||
} else if (error.type() == u"PHONE_NUMBER_BANNED"_q) {
|
||||
Ui::ShowPhoneBannedError(&_controller->window(), phoneNumber);
|
||||
} else if (error.type() == qstr("PHONE_NUMBER_OCCUPIED")) {
|
||||
} else if (error.type() == u"PHONE_NUMBER_OCCUPIED"_q) {
|
||||
_controller->show(
|
||||
Ui::MakeInformBox(
|
||||
tr::lng_change_phone_occupied(
|
||||
@@ -428,13 +428,13 @@ void ChangePhone::EnterCode::showError(const QString &text) {
|
||||
void ChangePhone::EnterCode::sendCodeFail(const MTP::Error &error) {
|
||||
if (MTP::IsFloodError(error)) {
|
||||
showError(tr::lng_flood_error(tr::now));
|
||||
} else if (error.type() == qstr("PHONE_CODE_EMPTY")
|
||||
|| error.type() == qstr("PHONE_CODE_INVALID")) {
|
||||
} else if (error.type() == u"PHONE_CODE_EMPTY"_q
|
||||
|| error.type() == u"PHONE_CODE_INVALID"_q) {
|
||||
showError(tr::lng_bad_code(tr::now));
|
||||
} else if (error.type() == qstr("PHONE_CODE_EXPIRED")
|
||||
|| error.type() == qstr("PHONE_NUMBER_BANNED")) {
|
||||
} else if (error.type() == u"PHONE_CODE_EXPIRED"_q
|
||||
|| error.type() == u"PHONE_NUMBER_BANNED"_q) {
|
||||
closeBox(); // Go back to phone input.
|
||||
} else if (error.type() == qstr("PHONE_NUMBER_INVALID")) {
|
||||
} else if (error.type() == u"PHONE_NUMBER_INVALID"_q) {
|
||||
showError(tr::lng_bad_phone(tr::now));
|
||||
} else {
|
||||
showError(Lang::Hard::ServerError());
|
||||
|
Reference in New Issue
Block a user