The cryptography mode. Affects how messages are encrypted and decrypted. Only supported by Rust crypto.

Enumeration Members

Enumeration Members

Invisible: 2

Message encryption keys are only shared with devices that have been cross-signed by their owner. Encryption will throw an error if a verified user replaces their identity. Events are decrypted only if they come from a cross-signed device other events will result in a decryption failure. (To access the failure reason, see MatrixEvent.decryptionFailureReason.)

Legacy: 0

Message encryption keys are shared with all devices in the room, except for blacklisted devices, or unverified devices if globalBlacklistUnverifiedDevices is set. Events from all senders are decrypted.

Transition: 1

Events are encrypted as with Legacy mode, but encryption will throw an error if a verified user has an unsigned device, or if a verified user replaces their identity. Events are decrypted only if they come from cross-signed devices, or devices that existed before the Rust crypto SDK started tracking device trust: other events will result in a decryption failure. (To access the failure reason, see MatrixEvent.decryptionFailureReason.)

""