Skip to content

Commit 0c9d82e

Browse files
authored
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`
1 parent 73ab7c3 commit 0c9d82e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/crypto/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,14 @@ export interface IMegolmEncryptedContent {
230230
export type IEncryptedContent = IOlmEncryptedContent | IMegolmEncryptedContent;
231231

232232
export enum CryptoEvent {
233+
/** @deprecated Event not fired by the rust crypto */
233234
DeviceVerificationChanged = "deviceVerificationChanged",
234235
UserTrustStatusChanged = "userTrustStatusChanged",
236+
/** @deprecated Event not fired by the rust crypto */
235237
UserCrossSigningUpdated = "userCrossSigningUpdated",
238+
/** @deprecated Event not fired by the rust crypto */
236239
RoomKeyRequest = "crypto.roomKeyRequest",
240+
/** @deprecated Event not fired by the rust crypto */
237241
RoomKeyRequestCancellation = "crypto.roomKeyRequestCancellation",
238242
KeyBackupStatus = "crypto.keyBackupStatus",
239243
KeyBackupFailed = "crypto.keyBackupFailed",
@@ -250,6 +254,7 @@ export enum CryptoEvent {
250254
*/
251255
KeyBackupDecryptionKeyCached = "crypto.keyBackupDecryptionKeyCached",
252256

257+
/** @deprecated Event not fired by the rust crypto */
253258
KeySignatureUploadFailure = "crypto.keySignatureUploadFailure",
254259
/** @deprecated Use `VerificationRequestReceived`. */
255260
VerificationRequest = "crypto.verification.request",
@@ -261,7 +266,9 @@ export enum CryptoEvent {
261266
*/
262267
VerificationRequestReceived = "crypto.verificationRequestReceived",
263268

269+
/** @deprecated Event not fired by the rust crypto */
264270
Warning = "crypto.warning",
271+
/** @deprecated Use {@link DevicesUpdated} instead when using rust crypto */
265272
WillUpdateDevices = "crypto.willUpdateDevices",
266273
DevicesUpdated = "crypto.devicesUpdated",
267274
KeysChanged = "crossSigning.keysChanged",

0 commit comments

Comments
 (0)