Skip to content

Commit

Permalink
feat(sliding_sync): Add m.room.join_rules to the required state
Browse files Browse the repository at this point in the history
We need the join rules state event to prevent the SDK from assuming a room with an unknown (as in, not loaded) join rule is public.
  • Loading branch information
jmartinesp committed Nov 8, 2024
1 parent b8a61cf commit 6c44d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/matrix-sdk-ui/src/room_list_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const DEFAULT_REQUIRED_STATE: &[(StateEventType, &str)] = &[
(StateEventType::RoomCanonicalAlias, ""),
(StateEventType::RoomPowerLevels, ""),
(StateEventType::CallMember, "*"),
(StateEventType::RoomJoinRules, ""),
];

/// The default `required_state` constant value for sliding sync room
Expand Down

0 comments on commit 6c44d32

Please sign in to comment.