Skip to content

Commit 52bdb57

Browse files
authored
Use crypto api import for CryptoCallbacks instead of legacy crypto (#4526)
1 parent 3c23eb6 commit 52bdb57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {
8080
CryptoEventHandlerMap as LegacyCryptoEventHandlerMap,
8181
fixBackupKey,
8282
ICheckOwnCrossSigningTrustOpts,
83-
ICryptoCallbacks,
8483
IRoomKeyRequestBody,
8584
isCryptoAvailable,
8685
} from "./crypto/index.ts";
@@ -229,6 +228,7 @@ import {
229228
ImportRoomKeysOpts,
230229
CryptoEvent,
231230
CryptoEventHandlerMap,
231+
CryptoCallbacks,
232232
} from "./crypto-api/index.ts";
233233
import { DeviceInfoMap } from "./crypto/DeviceList.ts";
234234
import {
@@ -437,7 +437,7 @@ export interface ICreateClientOpts {
437437
/**
438438
* Crypto callbacks provided by the application
439439
*/
440-
cryptoCallbacks?: ICryptoCallbacks;
440+
cryptoCallbacks?: CryptoCallbacks;
441441

442442
/**
443443
* Method to generate room names for empty rooms and rooms names based on membership.
@@ -1253,7 +1253,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
12531253
public crypto?: Crypto; // XXX: Intended private, used in code. Being replaced by cryptoBackend
12541254

12551255
private cryptoBackend?: CryptoBackend; // one of crypto or rustCrypto
1256-
public cryptoCallbacks: ICryptoCallbacks; // XXX: Intended private, used in code.
1256+
public cryptoCallbacks: CryptoCallbacks; // XXX: Intended private, used in code.
12571257
public callEventHandler?: CallEventHandler; // XXX: Intended private, used in code.
12581258
public groupCallEventHandler?: GroupCallEventHandler;
12591259
public supportsCallTransfer = false; // XXX: Intended private, used in code.

0 commit comments

Comments
 (0)