Skip to main content

encrypts_room

Function encrypts_room 

Source
fn encrypts_room(initial_state: &[InitialEvent]) -> bool
Expand description

Whether initial_state already configures the room’s encryption.

The last entry at the empty state key is the one that survives state resolution, so it alone decides whether the server’s forced default is displaced, and only by naming a string algorithm. The raw field is read rather than deserialized so an escaped string still counts as one.