pub(crate) async fn check_member_content_size(
services: &Services,
sender: &UserId,
room_id: &RoomId,
state_key: &str,
json: &Raw<AnyStateEventContent>,
) -> ResultExpand description
Refuses a client’s member event that is over the configured budget, or that newly stores a display name or avatar URL past its limit.
A stored name or avatar the write leaves unchanged is not bounded again, as long as the whole content fits the byte cap. A missing or unreadable stored event checks every value, as a first write does.