Fix joining restricted rooms with invite
This commit is contained in:
parent
c40671bfb0
commit
120a43cceb
1 changed files with 8 additions and 0 deletions
|
|
@ -166,6 +166,14 @@ pub(crate) async fn user_can_perform_restricted_join(
|
|||
return Ok(false);
|
||||
}
|
||||
|
||||
if services
|
||||
.state_cache
|
||||
.is_invited(user_id, room_id)
|
||||
.await
|
||||
{
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
let Ok(join_rules_event_content) = services
|
||||
.state_accessor
|
||||
.room_state_get_content::<RoomJoinRulesEventContent>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue