Skip to main content

invite_allowed

Function invite_allowed 

Source
fn invite_allowed(
    ignored: Option<&IgnoredUserListEventContent>,
    invitee: &UserId,
) -> bool
Expand description

Gate an invitee against the sender’s own ignore list.

The invitee’s own invite permission is not consulted here: local_invite is the authoritative check and refuses a blocked invite the same way any other failed invite is handled, while an ignored one proceeds and is withheld from the invitee afterwards.