Skip to content

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Aug 21, 2025

This PR adds a new event to the MatrixRTC session. An event that is emitted once the session has taken over its responsibilty of sending the notification event.

Context:
Element call now sends the notificaition event (the matrix event that makes other clients ring) instead of the client that encapsuls element call.

In element call we need to know if the js-sdk decided to actually send this notification or not. One example why it might not send it is: There is already someone in the call -> we are not the call starter -> we will not send a ring notification.

If it did send the notification (ring) and this new event emits it allows EC to build a ux around it. Commuication to the user that they are in "waiting for other participants to join" state.

Signed-off-by: Timo K [email protected]

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@toger5 toger5 requested a review from a team as a code owner August 21, 2025 15:41
@toger5 toger5 requested a review from hughns August 21, 2025 15:41
toger5 added a commit to element-hq/element-call that referenced this pull request Aug 25, 2025
toger5 added a commit to element-hq/element-call that referenced this pull request Aug 25, 2025
toger5 added a commit to element-hq/element-call that referenced this pull request Aug 25, 2025
@toger5 toger5 added the T-Feature Request to add a new feature which does not exist right now label Aug 25, 2025
@toger5 toger5 force-pushed the toger5/emit-on-notification-sent branch from 1d62bcd to a9dc1c3 Compare August 25, 2025 12:16
@toger5 toger5 changed the title MatrixRTCSession emits once the rtc notification is sent. MatrixRTCSession emits once the RTCNotification is sent. Aug 25, 2025
toger5 added a commit to element-hq/element-call that referenced this pull request Aug 25, 2025
@toger5 toger5 added T-Enhancement and removed T-Feature Request to add a new feature which does not exist right now labels Aug 25, 2025
@toger5 toger5 changed the title MatrixRTCSession emits once the RTCNotification is sent. Let a MatrixRTCSession emit once the RTCNotification is sent Aug 25, 2025
Signed-off-by: Timo K <[email protected]>
Copy link
Contributor

@fkwp fkwp left a comment

Choose a reason for hiding this comment

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

lgtm

@toger5 toger5 added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 26, 2025
@toger5 toger5 added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 26, 2025
Signed-off-by: Timo K <[email protected]>
@toger5 toger5 enabled auto-merge August 26, 2025 15:12
@toger5 toger5 changed the title Let a MatrixRTCSession emit once the RTCNotification is sent Make a MatrixRTCSession emit once the RTCNotification is sent Aug 26, 2025
@toger5 toger5 added this pull request to the merge queue Aug 26, 2025
Merged via the queue into develop with commit c4c7f94 Aug 26, 2025
36 checks passed
@toger5 toger5 deleted the toger5/emit-on-notification-sent branch August 26, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants