Fix joining restricted rooms with invite
This commit is contained in:
@@ -166,6 +166,14 @@ pub(crate) async fn user_can_perform_restricted_join(
|
|||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if services
|
||||||
|
.state_cache
|
||||||
|
.is_invited(user_id, room_id)
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
return Ok(true);
|
||||||
|
}
|
||||||
|
|
||||||
let Ok(join_rules_event_content) = services
|
let Ok(join_rules_event_content) = services
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.room_state_get_content::<RoomJoinRulesEventContent>(
|
.room_state_get_content::<RoomJoinRulesEventContent>(
|
||||||
|
|||||||
Reference in New Issue
Block a user