Skip to content

Commit

Permalink
start indexedDBStore
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Jan 17, 2025
1 parent a20092d commit 4070b97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/initMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ export const initClient = async (session: Session): Promise<MatrixClient> => {
dbName: 'web-sync-store',
});

const legacyCryptoStore = new IndexedDBCryptoStore(global.indexedDB, 'crypto-store');

const mx = createClient({
baseUrl: session.baseUrl,
accessToken: session.accessToken,
userId: session.userId,
store: indexedDBStore,
cryptoStore: new IndexedDBCryptoStore(global.indexedDB, 'crypto-store'),
cryptoStore: legacyCryptoStore,
deviceId: session.deviceId,
timelineSupport: true,
cryptoCallbacks: cryptoCallbacks as any,
verificationMethods: ['m.sas.v1'],
});

await indexedDBStore.startup();
await mx.initRustCrypto();

mx.setGlobalErrorOnUnknownDevices(false);
Expand Down

0 comments on commit 4070b97

Please sign in to comment.