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.
This commit is contained in:
Christian Pauly 2022-10-26 10:36:36 +02:00
parent c436a86915
commit 6c307980a5
1 changed files with 4 additions and 1 deletions

View File

@ -2961,7 +2961,10 @@ class Client extends MatrixApi {
await legacyDatabase?.close();
_initLock = false;
if (migrateClient != null) {
return init();
return init(
waitForFirstSync: false,
waitUntilLoadCompletedLoaded: false,
);
}
}
}