@@ -46,7 +46,6 @@ import { noUnsafeEventProps, QueryDict, replaceParam, safeSet, sleep } from "./u
4646import { Direction , EventTimeline } from "./models/event-timeline.ts" ;
4747import { IActionsObject , PushProcessor } from "./pushprocessor.ts" ;
4848import { AutoDiscovery , AutoDiscoveryAction } from "./autodiscovery.ts" ;
49- import * as olmlib from "./crypto/olmlib.ts" ;
5049import { decodeBase64 , encodeBase64 , encodeUnpaddedBase64Url } from "./base64.ts" ;
5150import { IExportedDevice as IExportedOlmDevice } from "./crypto/OlmDevice.ts" ;
5251import { IOlmDevice } from "./crypto/algorithms/megolm.ts" ;
@@ -252,6 +251,9 @@ export type Store = IStore;
252251export type ResetTimelineCallback = ( roomId : string ) => boolean ;
253252
254253const SCROLLBACK_DELAY_MS = 3000 ;
254+ /**
255+ * @deprecated Not supported for Rust Cryptography.
256+ */
255257export const CRYPTO_ENABLED : boolean = isCryptoAvailable ( ) ;
256258const TURN_CHECK_INTERVAL = 10 * 60 * 1000 ; // poll for turn credentials every 10 minutes
257259
@@ -2430,6 +2432,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
24302432 *
24312433 * @remarks
24322434 * Fires {@link CryptoEvent#DeviceVerificationChanged}
2435+ *
2436+ * @deprecated Not supported for Rust Cryptography.
24332437 */
24342438 public setDeviceVerified ( userId : string , deviceId : string , verified = true ) : Promise < void > {
24352439 const prom = this . setDeviceVerification ( userId , deviceId , verified , null , null ) ;
@@ -10115,7 +10119,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
1011510119 type : EventType . RoomEncryption ,
1011610120 state_key : "" ,
1011710121 content : {
10118- algorithm : olmlib . MEGOLM_ALGORITHM ,
10122+ algorithm : "m.megolm.v1.aes-sha2" ,
1011910123 } ,
1012010124 } ,
1012110125 ] ,
0 commit comments