Merge pull request #786 from matrix-org/dbkr/indexeddb_hide_internals

Update for new IndexedDBStore interface
pull/21833/head
David Baker 2017-04-04 10:39:45 +01:00 committed by GitHub
commit e3ac63777c
1 changed files with 5 additions and 6 deletions

View File

@ -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(), {
opts.store = new Matrix.IndexedDBStore({
indexedDB: window.indexedDB,
dbName: "riot-web-sync",
localStorage: localStorage,
}
);
});
}
this.matrixClient = Matrix.createClient(opts);