mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 18:44:10 +01:00
fix: Wait for loading before bootstrap
This commit is contained in:
parent
762139d43d
commit
07033ab9b0
@ -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…
Reference in New Issue
Block a user