mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Update for new IndexedDBStore interface
This commit is contained in:
parent
11a1c8099c
commit
9c4614e7ff
1 changed files with 5 additions and 6 deletions
|
@ -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 a new issue