Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the crypto events which are not used by the rust-crypto #4442

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
florianduros marked this conversation as resolved.
Show resolved Hide resolved
DevicesUpdated = "crypto.devicesUpdated",
KeysChanged = "crossSigning.keysChanged",
Expand Down
Loading