Skip to main content

field_matches

Function field_matches 

Source
fn field_matches(
    member: &RoomMemberEventContent,
    name: &ProfileFieldName,
    value: Option<&str>,
) -> Option<bool>
Expand description

Whether the member’s name field reads as value.

Returns None for a field other than the display name or the avatar URL, which the member event does not carry.