You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Change the name of the database
Full name is now `matrix-js-sdk:riot-web-sync`.
This commit is contained in:
@@ -122,8 +122,11 @@ class MatrixClientPeg {
|
|||||||
opts.sessionStore = new Matrix.WebStorageSessionStore(localStorage);
|
opts.sessionStore = new Matrix.WebStorageSessionStore(localStorage);
|
||||||
}
|
}
|
||||||
if (window.indexedDB && localStorage) {
|
if (window.indexedDB && localStorage) {
|
||||||
|
// FIXME: bodge to remove old database. Remove this after a few weeks.
|
||||||
|
window.indexedDB.deleteDatabase("matrix-js-sdk:default");
|
||||||
|
|
||||||
opts.store = new Matrix.IndexedDBStore(
|
opts.store = new Matrix.IndexedDBStore(
|
||||||
new Matrix.IndexedDBStoreBackend(window.indexedDB),
|
new Matrix.IndexedDBStoreBackend(window.indexedDB, "riot-web-sync"),
|
||||||
new Matrix.SyncAccumulator(), {
|
new Matrix.SyncAccumulator(), {
|
||||||
localStorage: localStorage,
|
localStorage: localStorage,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user