matrix-org / matrix-rust-sdk-crypto-wasm

Apache License 2.0
13 stars 7 forks source link

Add detailed megolm decryption errors #23

Closed BillCarsonFr closed 1 year ago

BillCarsonFr commented 1 year ago

Fixes https://github.com/vector-im/crypto-internal/issues/145

Updated the decrypt_room_event API in order to add typed errors. This level of details is needed by js-sdk/react-sdk, for requesting backup on UTDs as well as to report the type of errors to posthog.

Uses the new feature added here https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/22