From 52bdb57a472bbf0e68453e7ee4353bce2108e729 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 13 Nov 2024 11:47:02 +0100 Subject: [PATCH] Use crypto api import for `CryptoCallbacks` instead of legacy crypto (#4526) --- src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 2306844be5..bc7bf99938 100644 --- a/src/client.ts +++ b/src/client.ts @@ -80,7 +80,6 @@ import { CryptoEventHandlerMap as LegacyCryptoEventHandlerMap, fixBackupKey, ICheckOwnCrossSigningTrustOpts, - ICryptoCallbacks, IRoomKeyRequestBody, isCryptoAvailable, } from "./crypto/index.ts"; @@ -229,6 +228,7 @@ import { ImportRoomKeysOpts, CryptoEvent, CryptoEventHandlerMap, + CryptoCallbacks, } from "./crypto-api/index.ts"; import { DeviceInfoMap } from "./crypto/DeviceList.ts"; import { @@ -437,7 +437,7 @@ export interface ICreateClientOpts { /** * Crypto callbacks provided by the application */ - cryptoCallbacks?: ICryptoCallbacks; + cryptoCallbacks?: CryptoCallbacks; /** * Method to generate room names for empty rooms and rooms names based on membership. @@ -1253,7 +1253,7 @@ export class MatrixClient extends TypedEventEmitter