Skip to content

Commit

Permalink
sliding_sync(state): use * for m.call.member when requesting stat…
Browse files Browse the repository at this point in the history
…e through sliding sync

- introduced in #4159 with an empty string
- call members use custom `state_key`s and as such not specifying the sentinel won't match them and state won't be returned
  • Loading branch information
stefanceriu committed Oct 24, 2024
1 parent 31e9600 commit ca1d829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/room_list_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DEFAULT_REQUIRED_STATE: &[(StateEventType, &str)] = &[
(StateEventType::RoomTopic, ""),
(StateEventType::RoomCanonicalAlias, ""),
(StateEventType::RoomPowerLevels, ""),
(StateEventType::CallMember, ""),
(StateEventType::CallMember, "*"),
];

/// The default `required_state` constant value for sliding sync room
Expand Down
6 changes: 3 additions & 3 deletions crates/matrix-sdk-ui/tests/integration/room_list_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async fn test_sync_all_states() -> Result<(), Error> {
["m.room.topic", ""],
["m.room.canonical_alias", ""],
["m.room.power_levels", ""],
["org.matrix.msc3401.call.member", ""],
["org.matrix.msc3401.call.member", "*"],
],
"include_heroes": true,
"filters": {
Expand Down Expand Up @@ -2099,7 +2099,7 @@ async fn test_room_subscription() -> Result<(), Error> {
["m.room.topic", ""],
["m.room.canonical_alias", ""],
["m.room.power_levels", ""],
["org.matrix.msc3401.call.member", ""],
["org.matrix.msc3401.call.member", "*"],
["m.room.create", ""],
["m.room.pinned_events", ""],
],
Expand Down Expand Up @@ -2137,7 +2137,7 @@ async fn test_room_subscription() -> Result<(), Error> {
["m.room.topic", ""],
["m.room.canonical_alias", ""],
["m.room.power_levels", ""],
["org.matrix.msc3401.call.member", ""],
["org.matrix.msc3401.call.member", "*"],
["m.room.create", ""],
["m.room.pinned_events", ""],
],
Expand Down

0 comments on commit ca1d829

Please sign in to comment.