diff --git a/crates/matrix-sdk-ui/src/room_list_service/mod.rs b/crates/matrix-sdk-ui/src/room_list_service/mod.rs index d8ad9e1f8..984f36cf9 100644 --- a/crates/matrix-sdk-ui/src/room_list_service/mod.rs +++ b/crates/matrix-sdk-ui/src/room_list_service/mod.rs @@ -98,6 +98,8 @@ const DEFAULT_REQUIRED_STATE: &[(StateEventType, &str)] = &[ (StateEventType::MemberHints, ""), (StateEventType::SpaceParent, "*"), (StateEventType::SpaceChild, "*"), + // Required for live location sharing to work - beacon events reference this state. + (StateEventType::BeaconInfo, "*"), ]; /// The default `required_state` constant value for sliding sync room diff --git a/crates/matrix-sdk-ui/tests/integration/room_list_service.rs b/crates/matrix-sdk-ui/tests/integration/room_list_service.rs index cae35af4d..2610cd21f 100644 --- a/crates/matrix-sdk-ui/tests/integration/room_list_service.rs +++ b/crates/matrix-sdk-ui/tests/integration/room_list_service.rs @@ -378,6 +378,7 @@ async fn test_sync_all_states() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ], "filters": {}, "timeline_limit": 1, @@ -2349,6 +2350,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ["m.room.pinned_events", ""], ], "timeline_limit": 20, @@ -2391,6 +2393,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ], "filters": {}, "timeline_limit": 1, @@ -2415,6 +2418,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ["m.room.pinned_events", ""], ], "timeline_limit": 20, @@ -2462,6 +2466,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ], "filters": {}, "timeline_limit": 1, @@ -2486,6 +2491,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ["m.room.pinned_events", ""], ], "timeline_limit": 20, @@ -2508,6 +2514,7 @@ async fn test_room_subscription() -> Result<(), Error> { ["io.element.functional_members", ""], ["m.space.parent", "*"], ["m.space.child", "*"], + ["org.matrix.msc3672.beacon_info", "*"], ["m.room.pinned_events", ""], ], "timeline_limit": 20, @@ -3099,6 +3106,7 @@ async fn test_thread_subscriptions_extension_enabled_only_if_server_advertises_i [ "io.element.functional_members", "", ], [ "m.space.parent", "*", ], [ "m.space.child", "*", ], + ["org.matrix.msc3672.beacon_info", "*"], ], "timeline_limit": 1, }, @@ -3196,6 +3204,7 @@ async fn test_thread_subscriptions_extension_enabled_only_if_server_advertises_i [ "io.element.functional_members", "", ], [ "m.space.parent", "*", ], [ "m.space.child", "*", ], + ["org.matrix.msc3672.beacon_info", "*"], ], "timeline_limit": 1, },