Wait for rooms and account data to load

This commit is contained in:
Brandon Presley 2023-12-29 11:31:26 +13:00
parent c5ae0f0e85
commit 071df18b81

View File

@ -20,6 +20,8 @@ class ZenithClientProvider extends ChangeNotifier {
await client.login(LoginType.mLoginPassword, await client.login(LoginType.mLoginPassword,
identifier: AuthenticationUserIdentifier(user: username), identifier: AuthenticationUserIdentifier(user: username),
password: password); password: password);
await client.roomsLoading;
await client.accountDataLoading;
} finally { } finally {
_loading = false; _loading = false;
} }