forked from Henry-Hiles/nexus
Nicer verification error
This commit is contained in:
parent
e447540062
commit
5424dda62a
2 changed files with 45 additions and 9 deletions
|
|
@ -82,7 +82,7 @@ class ClientController extends AsyncNotifier<int> {
|
|||
try {
|
||||
await sendCommand("verify", {"recovery_key": recoveryKey});
|
||||
return true;
|
||||
} catch (_) {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ class ClientController extends AsyncNotifier<int> {
|
|||
try {
|
||||
await sendCommand("login", login.toJson());
|
||||
return true;
|
||||
} catch (_) {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -102,7 +102,7 @@ class ClientController extends AsyncNotifier<int> {
|
|||
"user_id": "@fakeuser:${homeserver.host}",
|
||||
});
|
||||
return (response["m.homeserver"] as Map<String, dynamic>)["base_url"];
|
||||
} catch (_) {
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue