Skip to content

Conversation

BillCarsonFr
Copy link
Member

Fixes #5580

  • Public API changes documented in changelogs (optional)

Signed-off-by:

Copy link

codecov bot commented Sep 3, 2025

Codecov Report

❌ Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.89%. Comparing base (1f2b4f8) to head (f70afad).
⚠️ Report is 62 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/room/calls.rs 95.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5614   +/-   ##
=======================================
  Coverage   88.89%   88.89%           
=======================================
  Files         345      346    +1     
  Lines       95800    95840   +40     
  Branches    95800    95840   +40     
=======================================
+ Hits        85158    85200   +42     
+ Misses       6655     6651    -4     
- Partials     3987     3989    +2     

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

Copy link

codspeed-hq bot commented Sep 3, 2025

CodSpeed Performance Report

Merging #5614 will not alter performance

Comparing valere/rtc_decline_call (f70afad) with main (d256325)

Summary

✅ 49 untouched benchmarks

@BillCarsonFr BillCarsonFr marked this pull request as ready for review September 3, 2025 12:18
@BillCarsonFr BillCarsonFr requested a review from a team as a code owner September 3, 2025 12:18
@BillCarsonFr BillCarsonFr requested review from poljar and removed request for a team September 3, 2025 12:18
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Looking mostly good, I left some nits here and there.

@BillCarsonFr BillCarsonFr requested a review from poljar September 5, 2025 07:02
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Thanks, looks good. Let's just add a changelog entry for this.

@BillCarsonFr
Copy link
Member Author

Thanks, looks good. Let's just add a changelog entry for this.

Added f70afad

@poljar
Copy link
Contributor

poljar commented Sep 5, 2025

The cargo-deny failure is due to a new RUSTSEC advisory, fixed by: #5633.

No need to rebase but I'll merge this PR after #5633 is merged.

Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Thanks, looks good.

Comment on lines +152 to +162
// The event must be CallNotify-like.
if let AnySyncTimelineEvent::MessageLike(AnySyncMessageLikeEvent::CallNotify(notify)) = event {
if notify.sender() == own_user_id {
// Cannot decline own call.
Err(CallError::DeclineOwnCall)
} else {
Ok(RtcDeclineEventContent::new(notification_event_id))
}
} else {
Err(CallError::BadEventType)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

EC will always sent both events (...rtc.notifcation + ...call.notify) but the spec does not define a relation to a call.notify event (they are deprecated).

To make all platforms consistent, we would need to decline on the rtc.notification event. Otherwise EW will not detect the decline and will not stop ringing.
As a stop gap we could patch EW to listen to any decline event independent of its m.relation.event_id.

But this is only really correct if it checks for m.rtc notification introduced here: ruma/ruma#2199

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.

Expose sending and receiving the m.rtc.decline events in the FFI layer
3 participants