mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-31 09:49:10 +01:00
use rust crypto
This commit is contained in:
parent
2feb4feee2
commit
b5dbb018a3
1 changed files with 1 additions and 4 deletions
|
@ -1,11 +1,8 @@
|
|||
import { createClient, MatrixClient, IndexedDBStore, IndexedDBCryptoStore } from 'matrix-js-sdk';
|
||||
import Olm from '@matrix-org/olm';
|
||||
import { logger } from 'matrix-js-sdk/lib/logger';
|
||||
|
||||
import { cryptoCallbacks } from './state/secretStorageKeys';
|
||||
|
||||
global.Olm = Olm;
|
||||
|
||||
if (import.meta.env.PROD) {
|
||||
logger.disableAll();
|
||||
}
|
||||
|
@ -37,7 +34,7 @@ export const initClient = async (session: Session): Promise<MatrixClient> => {
|
|||
verificationMethods: ['m.sas.v1'],
|
||||
});
|
||||
|
||||
await mx.initCrypto();
|
||||
await mx.initRustCrypto();
|
||||
|
||||
mx.setGlobalErrorOnUnknownDevices(false);
|
||||
mx.setMaxListeners(50);
|
||||
|
|
Loading…
Reference in a new issue