Merge pull request #786 from matrix-org/dbkr/indexeddb_hide_internals
Update for new IndexedDBStore interfacepull/21833/head
commit
e3ac63777c
|
@ -125,12 +125,11 @@ class MatrixClientPeg {
|
||||||
// FIXME: bodge to remove old database. Remove this after a few weeks.
|
// FIXME: bodge to remove old database. Remove this after a few weeks.
|
||||||
window.indexedDB.deleteDatabase("matrix-js-sdk:default");
|
window.indexedDB.deleteDatabase("matrix-js-sdk:default");
|
||||||
|
|
||||||
opts.store = new Matrix.IndexedDBStore(
|
opts.store = new Matrix.IndexedDBStore({
|
||||||
new Matrix.IndexedDBStoreBackend(window.indexedDB, "riot-web-sync"),
|
indexedDB: window.indexedDB,
|
||||||
new Matrix.SyncAccumulator(), {
|
dbName: "riot-web-sync",
|
||||||
localStorage: localStorage,
|
localStorage: localStorage,
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.matrixClient = Matrix.createClient(opts);
|
this.matrixClient = Matrix.createClient(opts);
|
||||||
|
|
Loading…
Reference in New Issue