From 9c4614e7ffd849ae989142ea5619426251e8b57b Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 31 Mar 2017 14:55:33 +0100 Subject: [PATCH] Update for new IndexedDBStore interface --- src/MatrixClientPeg.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index baa3293073..d92973ba7a 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -125,12 +125,11 @@ class MatrixClientPeg { // FIXME: bodge to remove old database. Remove this after a few weeks. window.indexedDB.deleteDatabase("matrix-js-sdk:default"); - opts.store = new Matrix.IndexedDBStore( - new Matrix.IndexedDBStoreBackend(window.indexedDB, "riot-web-sync"), - new Matrix.SyncAccumulator(), { - localStorage: localStorage, - } - ); + opts.store = new Matrix.IndexedDBStore({ + indexedDB: window.indexedDB, + dbName: "riot-web-sync", + localStorage: localStorage, + }); } this.matrixClient = Matrix.createClient(opts);