Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live location sharing - update beacon_info implementation to latest MSC #2281

Merged
merged 14 commits into from
Apr 8, 2022

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Apr 7, 2022

matrix-org/matrix-spec-proposals#3672

  • changes unstable event prefixes to use msc3672
  • changes beacon identifier logic. Previously beacons used unique event types to enable multiple state events per user per room so event type could be used as an identifier. According to msc3672 plain event types and state_key are used for beacons, identifier is now <roomId>_<state_key>.
  • add extra logic about beacon update

This change is marked as an internal change (Task), so will not be included in the changelog.

Kerry Archibald added 14 commits April 7, 2022 18:46
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
@@ -51,12 +50,14 @@ export const makeBeaconInfoEvent = (
...contentProps,
};
const event = new MatrixEvent({
type: `${M_BEACON_INFO.name}.${sender}.${eventTypeSuffix || Date.now()}`,
type: M_BEACON_INFO.name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@kerryarchibald kerryarchibald merged commit 781fdf4 into develop Apr 8, 2022
@kerryarchibald kerryarchibald deleted the psf-879/beacon-use-msc3672 branch April 8, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants