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
Delete database on logout. DI a SyncAccumulator. Log uncaught errors
This commit is contained in:
@@ -79,6 +79,7 @@ class MatrixClientPeg {
|
||||
console.log("Loading history from IndexedDB.");
|
||||
promise = this.matrixClient.store.startup();
|
||||
}
|
||||
promise.catch((err) => { console.error(err); });
|
||||
|
||||
promise.finally(() => {
|
||||
this.get().startClient(opts);
|
||||
@@ -124,7 +125,8 @@ class MatrixClientPeg {
|
||||
}
|
||||
if (window.indexedDB && localStorage) {
|
||||
opts.store = new Matrix.IndexedDBStore(
|
||||
new Matrix.IndexedDBStoreBackend(window.indexedDB), {
|
||||
new Matrix.IndexedDBStoreBackend(window.indexedDB),
|
||||
new Matrix.SyncAccumulator(), {
|
||||
localStorage: localStorage,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user