You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Lifecycle: Comment why we need to initialize the index before the client.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user