Skip to content

Commit ca1d829

Browse files
committed
sliding_sync(state): use * for m.call.member when requesting state 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
1 parent 31e9600 commit ca1d829

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/matrix-sdk-ui/src/room_list_service/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const DEFAULT_REQUIRED_STATE: &[(StateEventType, &str)] = &[
8787
(StateEventType::RoomTopic, ""),
8888
(StateEventType::RoomCanonicalAlias, ""),
8989
(StateEventType::RoomPowerLevels, ""),
90-
(StateEventType::CallMember, ""),
90+
(StateEventType::CallMember, "*"),
9191
];
9292

9393
/// The default `required_state` constant value for sliding sync room

crates/matrix-sdk-ui/tests/integration/room_list_service.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async fn test_sync_all_states() -> Result<(), Error> {
330330
["m.room.topic", ""],
331331
["m.room.canonical_alias", ""],
332332
["m.room.power_levels", ""],
333-
["org.matrix.msc3401.call.member", ""],
333+
["org.matrix.msc3401.call.member", "*"],
334334
],
335335
"include_heroes": true,
336336
"filters": {
@@ -2099,7 +2099,7 @@ async fn test_room_subscription() -> Result<(), Error> {
20992099
["m.room.topic", ""],
21002100
["m.room.canonical_alias", ""],
21012101
["m.room.power_levels", ""],
2102-
["org.matrix.msc3401.call.member", ""],
2102+
["org.matrix.msc3401.call.member", "*"],
21032103
["m.room.create", ""],
21042104
["m.room.pinned_events", ""],
21052105
],
@@ -2137,7 +2137,7 @@ async fn test_room_subscription() -> Result<(), Error> {
21372137
["m.room.topic", ""],
21382138
["m.room.canonical_alias", ""],
21392139
["m.room.power_levels", ""],
2140-
["org.matrix.msc3401.call.member", ""],
2140+
["org.matrix.msc3401.call.member", "*"],
21412141
["m.room.create", ""],
21422142
["m.room.pinned_events", ""],
21432143
],

0 commit comments

Comments
 (0)