Enumeration DecryptionFailureCode

A reason code for a failure to decrypt an event.

Enumeration Members

HISTORICAL_MESSAGE_BACKUP_UNCONFIGURED

Message was sent before the current device was created; there was a key backup on the server, but we don't seem to have access to the backup. (Probably we don't have the right key.)

HISTORICAL_MESSAGE_NO_KEY_BACKUP

Message was sent before the current device was created; there is no key backup on the server, so this decryption failure is expected.

HISTORICAL_MESSAGE_USER_NOT_JOINED

Message was sent when the user was not a member of the room.

HISTORICAL_MESSAGE_WORKING_BACKUP

Message was sent before the current device was created; there was a (usable) key backup on the server, but we still can't decrypt. (Either the session isn't in the backup, or we just haven't gotten around to checking yet.)

MEGOLM_BAD_ROOM

only used in legacy crypto

MEGOLM_KEY_WITHHELD

A special case of MEGOLM_UNKNOWN_INBOUND_SESSION_ID: the sender has told us it is withholding the key.

MEGOLM_KEY_WITHHELD_FOR_UNVERIFIED_DEVICE

A special case of MEGOLM_KEY_WITHHELD: the sender has told us it is withholding the key, because the current device is unverified.

MEGOLM_MISSING_FIELDS

only used in legacy crypto

MEGOLM_UNKNOWN_INBOUND_SESSION_ID

Message was encrypted with a Megolm session whose keys have not been shared with us.

OLM_BAD_ENCRYPTED_MESSAGE

only used in legacy crypto

OLM_BAD_RECIPIENT

only used in legacy crypto

OLM_BAD_RECIPIENT_KEY

only used in legacy crypto

OLM_BAD_ROOM

only used in legacy crypto

OLM_BAD_SENDER

only used in legacy crypto

OLM_BAD_SENDER_CHECK_FAILED

only used in legacy crypto

OLM_DECRYPT_GROUP_MESSAGE_ERROR

only used in legacy crypto

OLM_FORWARDED_MESSAGE

only used in legacy crypto

OLM_MISSING_CIPHERTEXT

only used in legacy crypto

OLM_NOT_INCLUDED_IN_RECIPIENTS

only used in legacy crypto

OLM_UNKNOWN_MESSAGE_INDEX

Message was encrypted with a Megolm session which has been shared with us, but in a later ratchet state.

SENDER_IDENTITY_PREVIOUSLY_VERIFIED

The sender's identity is not verified, but was previously verified.

UNKNOWN_ENCRYPTION_ALGORITHM

only used in legacy crypto

UNKNOWN_ERROR

Unknown or unclassified error.

UNKNOWN_SENDER_DEVICE

We weren't able to link the message back to any known device. This will only be used if the device isolation mode is set to OnlySignedDevicesIsolationMode.

UNSIGNED_SENDER_DEVICE

The sender device is not cross-signed. This will only be used if the device isolation mode is set to OnlySignedDevicesIsolationMode.