upgrade to matrix-js-sdk v37.5.0 (#2327)

* upgrade to js-sdk 37

* fix server crypto wasm locally
This commit is contained in:
Ajay Bura
2025-05-18 10:53:56 +05:30
committed by GitHub
parent 6ddcf2cb02
commit 387ce9c462
8 changed files with 96 additions and 51 deletions

View File

@@ -1,12 +1,7 @@
import { createClient, MatrixClient, IndexedDBStore, IndexedDBCryptoStore } from 'matrix-js-sdk';
import { logger } from 'matrix-js-sdk/lib/logger';
import { cryptoCallbacks } from './state/secretStorageKeys';
if (import.meta.env.PROD) {
logger.disableAll();
}
type Session = {
baseUrl: string;
accessToken: string;
@@ -38,7 +33,6 @@ export const initClient = async (session: Session): Promise<MatrixClient> => {
await indexedDBStore.startup();
await mx.initRustCrypto();
mx.setGlobalErrorOnUnknownDevices(false);
mx.setMaxListeners(50);
return mx;