Lifecycle: Comment why we need to initialize the index before the client.
parent
ccfe3c7e70
commit
9978fee512
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue