Skip to content

Commit

Permalink
[Backup] Await init complete before call backup process
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Sep 20, 2023
1 parent d0f64cf commit 925ed92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ class ChatListController extends State<ChatList>
await client.accountDataLoading;
if (client.prevBatch == null) {
await client.onSync.stream.first;
await client.initCompleter?.future;

// Display first login bootstrap if enabled
if (client.encryption?.keyManager.enabled == true) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ packages:
description:
path: "."
ref: twake-supported
resolved-ref: "186ded3be6d5acbe3476e61a38f6aeb41cac5347"
resolved-ref: "3cc4ded9cd70652b35b56bfbeb4ca0525ada1166"
url: "[email protected]:linagora/matrix-dart-sdk.git"
source: git
version: "0.22.2"
Expand Down

0 comments on commit 925ed92

Please sign in to comment.