fix: Wait for loading before bootstrap
This commit is contained in:
parent
52b2ee99a5
commit
b9f059060f
1 changed files with 2 additions and 0 deletions
|
|
@ -172,6 +172,8 @@ class ChatListController extends State<ChatList> {
|
||||||
|
|
||||||
void checkBootstrap() async {
|
void checkBootstrap() async {
|
||||||
if (!Matrix.of(context).client.encryptionEnabled) return;
|
if (!Matrix.of(context).client.encryptionEnabled) return;
|
||||||
|
await Matrix.of(context).client.accountDataLoading;
|
||||||
|
await Matrix.of(context).client.userDeviceKeysLoading;
|
||||||
final crossSigning =
|
final crossSigning =
|
||||||
await Matrix.of(context).client.encryption?.crossSigning?.isCached() ??
|
await Matrix.of(context).client.encryption?.crossSigning?.isCached() ??
|
||||||
false;
|
false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue