Skip to main content

can_join_directly

Function can_join_directly 

Source
pub fn can_join_directly(
    visibility: Visibility,
    policy: Option<&RoomPolicy>,
    actor: &AgentId,
    role: Role,
) -> bool
Expand description

Section 9.2 direct-join eligibility: the actor is invited with exactly role, or role is one of the room’s effective open roles. Bans and quotas are separate host checks.