LifeCycle: Start the event index before the client.

This commit is contained in:
Damir Jelić 2020-01-15 12:06:29 +01:00
parent a1cbff3c8c
commit 7fb3645e94

View file

@ -588,8 +588,8 @@ async function startMatrixClient(startSyncing=true) {
Mjolnir.sharedInstance().start();
if (startSyncing) {
await MatrixClientPeg.start();
await EventIndexPeg.init();
await MatrixClientPeg.start();
} else {
console.warn("Caller requested only auxiliary services be started");
await MatrixClientPeg.assign();