mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fixed display of failed peer resolve in corresponding window.
This commit is contained in:
parent
948ce77a8f
commit
f0e1498a41
1 changed files with 10 additions and 6 deletions
|
@ -210,10 +210,12 @@ void SessionNavigation::resolvePhone(
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).fail([=](const MTP::Error &error) {
|
||||||
_resolveRequestId = 0;
|
_resolveRequestId = 0;
|
||||||
if (error.code() == 400) {
|
if (error.code() == 400) {
|
||||||
show(Ui::MakeInformBox(tr::lng_username_by_phone_not_found(
|
parentController()->show(
|
||||||
tr::now,
|
Ui::MakeInformBox(tr::lng_username_by_phone_not_found(
|
||||||
lt_phone,
|
tr::now,
|
||||||
Ui::FormatPhone(phone))));
|
lt_phone,
|
||||||
|
Ui::FormatPhone(phone))),
|
||||||
|
Ui::LayerOption::CloseOther);
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
@ -233,8 +235,10 @@ void SessionNavigation::resolveUsername(
|
||||||
}).fail([=](const MTP::Error &error) {
|
}).fail([=](const MTP::Error &error) {
|
||||||
_resolveRequestId = 0;
|
_resolveRequestId = 0;
|
||||||
if (error.code() == 400) {
|
if (error.code() == 400) {
|
||||||
show(Ui::MakeInformBox(
|
parentController()->show(
|
||||||
tr::lng_username_not_found(tr::now, lt_user, username)));
|
Ui::MakeInformBox(
|
||||||
|
tr::lng_username_not_found(tr::now, lt_user, username)),
|
||||||
|
Ui::LayerOption::CloseOther);
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue