From 6c307980a56a69926582cd5dd524d70688ed4f84 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 26 Oct 2022 10:36:36 +0200 Subject: [PATCH] fix: Do not wait for first sync after migration init If the first sync fails because of a connection problem then the migration is lost. This should not happen. --- lib/src/client.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index d07ad97f..ec8cf92c 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -2961,7 +2961,10 @@ class Client extends MatrixApi { await legacyDatabase?.close(); _initLock = false; if (migrateClient != null) { - return init(); + return init( + waitForFirstSync: false, + waitUntilLoadCompletedLoaded: false, + ); } } }