Lifecycle: Comment why we need to initialize the index before the client.

pull/21833/head
Damir Jelić 2020-01-20 10:06:20 +01:00
parent ccfe3c7e70
commit 9978fee512
1 changed files with 3 additions and 0 deletions

View File

@ -588,6 +588,9 @@ async function startMatrixClient(startSyncing=true) {
Mjolnir.sharedInstance().start(); Mjolnir.sharedInstance().start();
if (startSyncing) { if (startSyncing) {
// The client might want to populate some views with events from the
// index (e.g. the FilePanel), therefore initialize the event index
// before the client.
await EventIndexPeg.init(); await EventIndexPeg.init();
await MatrixClientPeg.start(); await MatrixClientPeg.start();
} else { } else {