Skip to content

Conversation

@BillCarsonFr
Copy link
Member

CallNotify event has been deprecated in favour of RtcNotification event ruma/ruma#2199

Needs an update on ruma dependency

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 15, 2025

CodSpeed Performance Report

Merging #5668 will not alter performance

Comparing valere/call/new_rtc_notification (a0cffc6) with main (8c6922d)

Summary

✅ 49 untouched

@BillCarsonFr BillCarsonFr force-pushed the valere/call/new_rtc_notification branch 2 times, most recently from e4c8d51 to e68ddbc Compare September 15, 2025 13:13
@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 64.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.36%. Comparing base (b8cbd6c) to head (a0cffc6).
⚠️ Report is 22 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...trix-sdk-ui/src/timeline/event_item/content/mod.rs 0.00% 7 Missing ⚠️
crates/matrix-sdk-ui/src/timeline/event_handler.rs 0.00% 1 Missing ⚠️
...rates/matrix-sdk-ui/src/timeline/event_item/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5668      +/-   ##
==========================================
- Coverage   88.37%   88.36%   -0.01%     
==========================================
  Files         355      355              
  Lines       97476    97476              
  Branches    97476    97476              
==========================================
- Hits        86146    86138       -8     
- Misses       7264     7272       +8     
  Partials     4066     4066              

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

@BillCarsonFr BillCarsonFr force-pushed the valere/call/new_rtc_notification branch from e68ddbc to d270dcd Compare September 15, 2025 14:12
@BillCarsonFr BillCarsonFr marked this pull request as ready for review September 15, 2025 14:38
@BillCarsonFr BillCarsonFr requested a review from a team as a code owner September 15, 2025 14:38
@BillCarsonFr BillCarsonFr requested review from bnjbvr and removed request for a team September 15, 2025 14:38
@BillCarsonFr BillCarsonFr self-assigned this Sep 16, 2025
Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Thanks. Two minor comments below, and a few extra questions:

  • being unaware of the MSC et al., does this maintain backwards compatibility with the existing system and events?
  • linked to the other question: does it require a timed merge with an Element Call release, or can this PR be merged at any time?

pub enum NotifyType {
pub enum RtcNotificationType {
Ring,
Notify,
Copy link
Member

Choose a reason for hiding this comment

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

Should it be renamed Notification to align with Ruma?

Copy link
Member Author

Choose a reason for hiding this comment

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

right, done 9d53bc1

Comment on lines 1018 to 1019
content.relates_to = rtc_membership_event_id.map(Reference::new);
content.mentions = mentions;
Copy link
Member

Choose a reason for hiding this comment

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

The more idiomatic way with the EventFactory builder pattern would be to add fn mentions() and fn rtc_membership_event() methods on impl EventBuilder<RtcNotificationEventContent>, so that we don't have Optional parameters in this ctor. Also, I would rather make it so that the timestamp and durations are configurable (aka function parameters), so we don't have tight coupling between the test framework and the tests themselves (or, at least let's rename rtc_notification to predefined_rtc_notification or something like that)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for all the tips! I missed the fact that one could do impl EventBuilder<CONTENT>.
Done here 0505ce2

@BillCarsonFr
Copy link
Member Author

Thanks. Two minor comments below, and a few extra questions:

* being unaware of the MSC et al., does this maintain backwards compatibility with the existing system and events?

* linked to the other question: does it require a timed merge with an Element Call release, or can this PR be merged at any time?

Good Q. Given that EC is already sending both the old mscXXX.call.decline as well as the new mscXXX.rtc.notification, we decided that we don't need to support both nor to require timed merged. It can be merged anytime

@BillCarsonFr BillCarsonFr requested a review from bnjbvr September 16, 2025 12:54
Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Perfect then, thanks!

@bnjbvr bnjbvr merged commit 6818634 into main Sep 16, 2025
54 checks passed
@bnjbvr bnjbvr deleted the valere/call/new_rtc_notification branch September 16, 2025 14:06
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.

3 participants