mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-26 04:34:06 +00:00
relax state visibility for invited modes
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user