Skip to content

Commit

Permalink
relax state visibility for invited modes
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Volk <[email protected]>
  • Loading branch information
jevolk committed Nov 19, 2024
1 parent 411c600 commit e257512
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service/rooms/state_accessor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ impl Service {
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.
Expand Down

0 comments on commit e257512

Please sign in to comment.