Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Use method from MatrixClient to set new store #11844

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/MatrixClientPeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ class MatrixClientPegClass implements IMatrixClientPeg {
} catch (err) {
if (dbType === "indexeddb") {
logger.error("Error starting matrixclient store - falling back to memory store", err);
this.matrixClient.store = new MemoryStore({
MidhunSureshR marked this conversation as resolved.
Show resolved Hide resolved
const fallbackStore = new MemoryStore({
localStorage: localStorage,
});
this.matrixClient.setStore(fallbackStore);
} else {
logger.error("Failed to start memory store!", err);
throw err;
Expand Down
Loading