mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Show correct error on stopped starref.
This commit is contained in:
@@ -472,7 +472,9 @@ void SessionNavigation::resolveUsername(
|
||||
resolveDone(result, done);
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
_resolveRequestId = 0;
|
||||
if (error.code() == 400) {
|
||||
if (error.type() == u"STARREF_EXPIRED"_q) {
|
||||
parentController()->showToast(tr::lng_star_ref_stopped(tr::now));
|
||||
} else if (error.code() == 400) {
|
||||
parentController()->show(
|
||||
Ui::MakeInformBox(
|
||||
tr::lng_username_not_found(tr::now, lt_user, username)),
|
||||
|
||||
Reference in New Issue
Block a user