Skip to main content

overlay_member_content

Function overlay_member_content 

Source
fn overlay_member_content(
    content: CanonicalJsonObject,
    writes: &[&ProfileValue],
) -> Result<CanonicalJsonObject>
Expand description

Overlays the profile writes onto the previous member content.

MSC4466 copies every other key unchanged, and forbids copying reason and join_authorised_via_users_server. A key the write clears is removed.