-
Notifications
You must be signed in to change notification settings - Fork 155
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
Stop incoming call ringing if answered on another device. #3842
Conversation
} else if (userIsInTheCall) { | ||
// The user joined the call from another session | ||
timedOutCallJob?.cancel() | ||
incomingCallTimedOut(displayMissedCallNotification = false) |
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.
Note that if the call is not ringing anymore we will run this onEach block because we are still observing the roomInfoFlow, but there is some filtering on incomingCallTimedOut
that saves us.
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Quality Gate passedIssues Measures |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3842 +/- ##
===========================================
- Coverage 82.98% 82.98% -0.01%
===========================================
Files 1783 1783
Lines 44971 44976 +5
Branches 5289 5292 +3
===========================================
+ Hits 37320 37322 +2
- Misses 5805 5808 +3
Partials 1846 1846 ☔ View full report in Codecov by Sentry. |
Content
First commit is code cleanup.
Observe if the user is in the call. If the call is still ringing, it will stop ringing and do not display the "missing call" notification.
Motivation and context
See element-hq/element-meta#2599
Screenshots / GIFs
Tests
Observe that Alice phone is not ringing anymore and the notification about the (missed) call is not displayed
Also check that the code behaves correctly if Aliace answers the call from EXA.
Tested devices
Checklist