Skip to main content

check_member_size

Function check_member_size 

Source
pub fn check_member_size(max_bytes: usize, json_len: usize) -> Result
Expand description

Bounds the canonical size of a client-supplied m.room.member content, in bytes.

Every route measures the canonical form, the one the stored event carries, so the cap means the same thing wherever a member event enters.