2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-05-05 17:37:24 +02:00

fix: Wait for loading before bootstrap

This commit is contained in:
Krille Fear 2021-11-11 19:52:56 +01:00
parent 762139d43d
commit 07033ab9b0

@ -172,6 +172,8 @@ class ChatListController extends State<ChatList> {
void checkBootstrap() async {
if (!Matrix.of(context).client.encryptionEnabled) return;
await Matrix.of(context).client.accountDataLoading;
await Matrix.of(context).client.userDeviceKeysLoading;
final crossSigning =
await Matrix.of(context).client.encryption?.crossSigning?.isCached() ??
false;