From 2fdc07b38d711302fce5a640ef94f0e1fd513e2d Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 5 Apr 2019 11:38:27 +0100 Subject: [PATCH] Track stores after possible store reassignment --- src/MatrixClientPeg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index ccdd48f41b..763eddbd5d 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -95,8 +95,6 @@ class MatrixClientPeg { } async start() { - StorageManager.trackStores(this.matrixClient); - for (const dbType of ['indexeddb', 'memory']) { try { const promise = this.matrixClient.store.startup(); @@ -116,6 +114,8 @@ class MatrixClientPeg { } } + StorageManager.trackStores(this.matrixClient); + // try to initialise e2e on the new client try { // check that we have a version of the js-sdk which includes initCrypto