fn changed_writes<'a>(
member: &RoomMemberEventContent,
profile_values: &'a [ProfileValue],
unchanged: bool,
current_displayname: Option<&str>,
current_avatar_url: Option<&MxcUri>,
) -> SmallVec<[&'a ProfileValue; 2]> ⓘExpand description
Returns the profile writes that change the member event.
Compares against the typed previous content, so a no-op write emits nothing.
With unchanged, a field is written only where the room still holds the
current global value, so a room override is left alone.