From 0c9d82e40a2d3d2064192eb6d48732fc58d7afca Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Mon, 7 Oct 2024 14:26:56 +0200 Subject: [PATCH] Deprecate the crypto events which are not used by the rust-crypto (#4442) * Deprecate crypto event not used by the rust-crypto * Deprecate `Crypto.WillUpdateDevices` for `Crypto.DevicesUpdated` --- src/crypto/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/crypto/index.ts b/src/crypto/index.ts index 9f4b397818..1b1cef084c 100644 --- a/src/crypto/index.ts +++ b/src/crypto/index.ts @@ -230,10 +230,14 @@ export interface IMegolmEncryptedContent { export type IEncryptedContent = IOlmEncryptedContent | IMegolmEncryptedContent; export enum CryptoEvent { + /** @deprecated Event not fired by the rust crypto */ DeviceVerificationChanged = "deviceVerificationChanged", UserTrustStatusChanged = "userTrustStatusChanged", + /** @deprecated Event not fired by the rust crypto */ UserCrossSigningUpdated = "userCrossSigningUpdated", + /** @deprecated Event not fired by the rust crypto */ RoomKeyRequest = "crypto.roomKeyRequest", + /** @deprecated Event not fired by the rust crypto */ RoomKeyRequestCancellation = "crypto.roomKeyRequestCancellation", KeyBackupStatus = "crypto.keyBackupStatus", KeyBackupFailed = "crypto.keyBackupFailed", @@ -250,6 +254,7 @@ export enum CryptoEvent { */ KeyBackupDecryptionKeyCached = "crypto.keyBackupDecryptionKeyCached", + /** @deprecated Event not fired by the rust crypto */ KeySignatureUploadFailure = "crypto.keySignatureUploadFailure", /** @deprecated Use `VerificationRequestReceived`. */ VerificationRequest = "crypto.verification.request", @@ -261,7 +266,9 @@ export enum CryptoEvent { */ VerificationRequestReceived = "crypto.verificationRequestReceived", + /** @deprecated Event not fired by the rust crypto */ Warning = "crypto.warning", + /** @deprecated Use {@link DevicesUpdated} instead when using rust crypto */ WillUpdateDevices = "crypto.willUpdateDevices", DevicesUpdated = "crypto.devicesUpdated", KeysChanged = "crossSigning.keysChanged",