Fix joining restricted rooms with invite

This commit is contained in:
dasha_uwu
2025-08-26 05:15:49 +05:00
parent c40671bfb0
commit 120a43cceb

View File

@@ -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>(