From 6c307980a56a69926582cd5dd524d70688ed4f84 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 26 Oct 2022 10:36:36 +0200 Subject: [PATCH 1/2] 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, + ); } } } From 2b1467f96283e8cca42867f99845841d679f4145 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 26 Oct 2022 10:37:51 +0200 Subject: [PATCH 2/2] chore: Bump version --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac464de..9a169ae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.14.4] - 26th Oct 2022 +- fix: Do not wait for first sync after migration init + ## [0.14.3] - 24th Oct 2022 - fix: Do not assume that push rules are never malformed in account data - chore: change codeowners diff --git a/pubspec.yaml b/pubspec.yaml index 39d2dde7..8122ff66 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.14.3 +version: 0.14.4 homepage: https://famedly.com repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git