Skip to content

EventShieldReason

Defined in: src/crypto-api/index.ts:1295

Reason codes for EventEncryptionInfo#shieldReason.

AUTHENTICITY_NOT_GUARANTEED: 4

Defined in: src/crypto-api/index.ts:1313

“The authenticity of this encrypted message can’t be guaranteed on this device.”

ie: the key has been forwarded, or retrieved from an insecure backup.


MISMATCHED_SENDER: 8

Defined in: src/crypto-api/index.ts:1341

The sender field on the event does not match the owner of the device that established the Megolm session.


MISMATCHED_SENDER_KEY: 5

Defined in: src/crypto-api/index.ts:1322

The (deprecated) sender_key field in the event does not match the Ed25519 key of the device that sent us the decryption keys.


SENT_IN_CLEAR: 6

Defined in: src/crypto-api/index.ts:1330

The event was sent unencrypted in an encrypted room.


UNKNOWN: 0

Defined in: src/crypto-api/index.ts:1297

An unknown reason from the crypto library (if you see this, it is a bug in the Digital World Messaging SDK).


UNKNOWN_DEVICE: 3

Defined in: src/crypto-api/index.ts:1306

“Encrypted by an unknown or deleted device.”


UNSIGNED_DEVICE: 2

Defined in: src/crypto-api/index.ts:1303

“Encrypted by a device not verified by its owner.”


UNVERIFIED_IDENTITY: 1

Defined in: src/crypto-api/index.ts:1300

“Encrypted by an unverified user.”


VERIFICATION_VIOLATION: 7

Defined in: src/crypto-api/index.ts:1335

The sender was previously verified but changed their identity.