fix(live location): include BeaconInfo in required state
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user