Skip to main content

restricted_allows

Function restricted_allows 

Source
pub fn restricted_allows(
    conn: &Connection,
    room_id: &str,
    user_id: i64,
) -> Result<bool, MatrixError>
Expand description

Whether m.room.join_rules is restricted (or knock_restricted) and one of its allow spaces has user_id joined. Join rule for restricted rooms is read from state because the rooms.join_rule column only knows invite/public.