libkazv
|
For events that cannot be decrypted, event.decrypted()
will be false, event.type()
will be m.room.message
, and event.content().get().at("msgtype")
can have the following values:
This means we haven't even tried to decrypt this event. The most probable case is that we do not have the corresponding session key.
This means that the corresponding session is known, but there are errors in the decryption.
The event content will have the following properties:
moe.kazv.mxc.errcode
The error code.moe.kazv.mxc.error
The error message.moe.kazv.mxc.raw
The raw data associated with the error.There is an error from libkazvcrypto when decrypting the event.
moe.kazv.mxc.error
contains the error message.
moe.kazv.mxc.raw
is always null
.
The decrypted message is not valid json.
moe.kazv.mxc.error
contains the error message from the json library when parsing the decrypted message.
moe.kazv.mxc.raw
contains the decrypted message as string.
The sender's device key is unknown. Only for olm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The sender specified in the decrypted event does not match the sender in the original event. Only for olm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The recipient specified in the decrypted event does not match the current user. Only for olm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The recipient keys specified in the decrypted event do not match the current user. Only for olm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The sender keys specified in the decrypted event do not match the sender keys we received from the homeserver. Only for olm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The room id specified in the decrypted event do not match the one we received from the homeserver. Only for megolm-encrypted events.
moe.kazv.mxc.raw
is the decrypted json.
The encryption algorithm is unknown.
moe.kazv.mxc.raw
is the decrypted json.
The decrypted json does not have a valid format.
moe.kazv.mxc.error
contains the error message from the json library when accessing required properties (e.g. at()
or template get()
).
moe.kazv.mxc.raw
is the decrypted json.