mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
fix: Wait for first sync on bootstrap
This commit is contained in:
parent
0135780f65
commit
a6ab9a2ab0
@ -158,6 +158,7 @@ class ChatListController extends State<ChatList> {
|
|||||||
_initReceiveSharingIntent();
|
_initReceiveSharingIntent();
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
if (!Matrix.of(context).client.encryptionEnabled) return;
|
if (!Matrix.of(context).client.encryptionEnabled) return;
|
||||||
|
await waitForFirstSync();
|
||||||
if ((Matrix.of(context).client.database as FlutterMatrixHiveStore)
|
if ((Matrix.of(context).client.database as FlutterMatrixHiveStore)
|
||||||
.get(SettingKeys.dontAskForBootstrapKey) ==
|
.get(SettingKeys.dontAskForBootstrapKey) ==
|
||||||
true) {
|
true) {
|
||||||
@ -173,6 +174,7 @@ class ChatListController extends State<ChatList> {
|
|||||||
firstRunBootstrapAction();
|
firstRunBootstrapAction();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user