Wait for rooms and account data to load
This commit is contained in:
parent
c5ae0f0e85
commit
071df18b81
|
@ -20,6 +20,8 @@ class ZenithClientProvider extends ChangeNotifier {
|
|||
await client.login(LoginType.mLoginPassword,
|
||||
identifier: AuthenticationUserIdentifier(user: username),
|
||||
password: password);
|
||||
await client.roomsLoading;
|
||||
await client.accountDataLoading;
|
||||
} finally {
|
||||
_loading = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user