pub fn can_join_directly(
visibility: Visibility,
policy: Option<&RoomPolicy>,
actor: &AgentId,
role: Role,
) -> boolExpand 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.