diff --git a/src/client.ts b/src/client.ts index 85a4e84f8d9..04c10ceae52 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1590,6 +1590,8 @@ export class MatrixClient extends TypedEventEmitter { if (this.crypto) { @@ -1690,6 +1692,8 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { this.logger.warn("not exporting device if crypto is not enabled"); @@ -2121,6 +2128,8 @@ export class MatrixClient extends TypedEventEmitter { if (!isCryptoAvailable()) { @@ -2314,7 +2323,7 @@ export class MatrixClient extends TypedEventEmitterdeviceId-\>`DeviceInfo` * - * @deprecated Prefer {@link CryptoApi.getUserDeviceInfo} + * @deprecated Not supported for Rust Cryptography. Prefer {@link CryptoApi.getUserDeviceInfo} */ public downloadKeys(userIds: string[], forceDownload?: boolean): Promise { if (!this.crypto) { @@ -2362,7 +2371,7 @@ export class MatrixClient extends TypedEventEmitter { return this.setDeviceVerification(userId, deviceId, null, blocked, null); @@ -2447,6 +2458,8 @@ export class MatrixClient extends TypedEventEmitter { return this.setDeviceVerification(userId, deviceId, null, null, known); @@ -2474,7 +2487,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -2489,7 +2502,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -2544,7 +2557,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -2639,7 +2652,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { throw new Error("End-to-end encryption disabled"); @@ -2859,6 +2878,8 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3040,6 +3061,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3128,6 +3151,8 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3152,6 +3177,8 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3217,6 +3244,8 @@ export class MatrixClient extends TypedEventEmitter[], payload: object): Promise { if (!this.crypto) { @@ -3232,7 +3261,6 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3347,7 +3375,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -3585,6 +3615,7 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -4035,10 +4066,6 @@ export class MatrixClient extends TypedEventEmitter; public deleteKeysFromBackup(roomId: string, sessionId: string, version?: string): Promise; public async deleteKeysFromBackup(roomId?: string, sessionId?: string, version?: string): Promise { - if (!this.crypto) { - throw new Error("End-to-end encryption disabled"); - } - const path = this.makeKeyBackupPath(roomId!, sessionId!, version); await this.http.authedRequest(Method.Delete, path.path, path.queryData, undefined, { prefix: ClientPrefix.V3 }); } @@ -4049,6 +4076,9 @@ export class MatrixClient extends TypedEventEmitter { if (!this.crypto) { @@ -7907,6 +7937,8 @@ export class MatrixClient extends TypedEventEmitter