From 658c34abf3c05e71667176bcb0cfd884960ea388 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 21 Feb 2017 15:44:57 +0000 Subject: [PATCH] Change the name of the database Full name is now `matrix-js-sdk:riot-web-sync`. --- src/MatrixClientPeg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index 3759aa72c1..baa3293073 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -122,8 +122,11 @@ class MatrixClientPeg { opts.sessionStore = new Matrix.WebStorageSessionStore(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( - new Matrix.IndexedDBStoreBackend(window.indexedDB), + new Matrix.IndexedDBStoreBackend(window.indexedDB, "riot-web-sync"), new Matrix.SyncAccumulator(), { localStorage: localStorage, }