-
Notifications
You must be signed in to change notification settings - Fork 260
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
feat(calls): add support for sending Matrix RTC call notifications (MSC4075) #3434
Conversation
25f9d92
to
21e4009
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3434 +/- ##
==========================================
- Coverage 83.23% 83.22% -0.01%
==========================================
Files 247 247
Lines 25051 25066 +15
==========================================
+ Hits 20851 20862 +11
- Misses 4200 4204 +4 ☔ View full report in Codecov by Sentry. |
The code looks sensible to me but I have asked for help from other team members with more context since I'm not confident I understand the implications of this. |
In terms of testing, it looks like you might be able to do it using a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, no-one else who's around at the moment has much knowledge on the Element Call integration, so I've reviewed the code as best I can.
It looks good, but I would like it to be tested. Please could you give it a go? Feel free to ping me for a call to try and pair on it if it proves tricky.
Thanks for the review. I already looked around but honestly all of this feels ridiculously complicated just to check a trivial piece of logic i.e. send a ring if it's a dm. Isn't there a simpler way to mock rooms in the rust sdk? |
21e4009
to
ac7c4c2
Compare
It does seem unfortunate that |
Alrighty, I managed to make something happen, please have another look |
3d3c5db
to
f5c8276
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
I think someone from the Rust team has to hit the green button 😅 . |
This PR adds 2 new methods exposed all the way up to the ffi level that allow the client application to send call notifications when entering an Element call.
send_call_notification_if_needed
will check whether there's already an active call before chosing the notify type base don whether the room is a DM or notsend_call_notification
is supposed to be used for very custom use cases, logic living on the clientCallNotify
event type for the client to use when receiving a push notificationNB I had a serious go at writing a test for this but setting it up is beyond my rust sdk knowledge. If you really think it's necessary please provide tips, tricks and send thoughts and prayers.