A m.room.encrypted event with the algorithm type "m.olm.v1.curve25519-aes-sha2" will have multiple ciphertext values. The documentation for the struct field even mentions that the ciphertext is a map, yet it only expected one body and one message type. This patch fixes the de-serialization and puts all the available ciphertext values into a hashmap.
ruma-events
ruma-events contains serializable types for the events in the Matrix specification that can be shared by client and server code.
Minimum Rust version
ruma-events requires Rust 1.36.0 or later.
Documentation
ruma-events has comprehensive documentation available on docs.rs.
License
Languages
Rust
100%