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

sdk: basic support for sending location beacons #3771

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

torrybr
Copy link
Contributor

@torrybr torrybr commented Jul 26, 2024

This MR introduces basic functionality for sending beacons associated with a live location share, as outlined in the matrix-org/matrix-spec-proposals#3489. This foundational support allows users to send their live location beacon.

Key Changes

  • send_location_beacon: simple support for sending a beacon message event with related beacon_info event id.

These changes were adapted from a previous MR discussion, available for reference here.

Follow-up

This does not save any beacon message events with its associated beacon_info. This MR simply introduces beacon sending support with the intention of follow on MRs to build on this basic functionality.

Signed-off-by:

@torrybr torrybr requested a review from a team as a code owner July 26, 2024 21:30
@torrybr torrybr requested review from jmartinesp and removed request for a team July 26, 2024 21:30
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.08%. Comparing base (6fca1e8) to head (3756eeb).

Files Patch % Lines
crates/matrix-sdk/src/room/mod.rs 89.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3771      +/-   ##
==========================================
+ Coverage   84.07%   84.08%   +0.01%     
==========================================
  Files         259      259              
  Lines       27080    27087       +7     
==========================================
+ Hits        22767    22776       +9     
+ Misses       4313     4311       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@torrybr torrybr force-pushed the feat/send-beacon branch from 24c7f2c to ab6d039 Compare July 27, 2024 02:57
@torrybr torrybr force-pushed the feat/send-beacon branch from 3cb0bea to dd25293 Compare July 27, 2024 03:18
Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for moving the tests to a new file.

@jmartinesp jmartinesp merged commit e083311 into matrix-org:main Jul 29, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants