relax state visibility for invited modes

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2024-11-17 04:45:45 +00:00
parent 411c60009d
commit e257512aa7
+5 -1
View File
@@ -287,7 +287,11 @@ pub async fn user_can_see_state_events(&self, user_id: &UserId, room_id: &RoomId
c.history_visibility
});
history_visibility == HistoryVisibility::WorldReadable
match history_visibility {
HistoryVisibility::Invited => self.services.state_cache.is_invited(user_id, room_id).await,
HistoryVisibility::WorldReadable => true,
_ => false,
}
}
/// Returns the state hash for this pdu.