Skip to content
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

Various ElementCall fixes #3140

Merged
merged 5 commits into from
Aug 8, 2024
Merged

Various ElementCall fixes #3140

merged 5 commits into from
Aug 8, 2024

Conversation

stefanceriu
Copy link
Member

No description provided.

- CallKit decides what action to to take when pressing the hardware lock button based on where the audio is routed to. Using the speaker will make it lock the phone while using the headset will make it end the call.
- Before the introduction of CallKit we had to manually setup the AudioSession to keep the audio live in the background. This is now clashing with CallKit making it bevelie the audio is not routed to the speaker and causing the call be terminated when pressing the lock button.
- we're currently working around the widget not properly aquiring media streams by manually terminating a call before starting the web view
- it seems that there's a race condition between that and the system opening the app
- as such we need to delay terminating the call until the system gets a chance to handle the redirect
- expose `activeRoomCallParticipants` and use them to detect if the user has joined the call from a different device
…in (or a 5 second timeout)

- this will ensure that the room state is up to date before sending any call related events
@stefanceriu stefanceriu added the pr-bugfix for bug fix label Aug 8, 2024
@stefanceriu stefanceriu requested a review from a team as a code owner August 8, 2024 11:38
@stefanceriu stefanceriu requested review from Velin92 and removed request for a team August 8, 2024 11:38
Copy link

github-actions bot commented Aug 8, 2024

Warnings
⚠️ Please provide a description for this PR.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against f308582

Copy link

sonarcloud bot commented Aug 8, 2024

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 97 lines in your changes missing coverage. Please review.

Project coverage is 77.24%. Comparing base (e5c97ec) to head (f308582).
Report is 1 commits behind head on develop.

Files Patch % Lines
...rces/Services/ElementCall/ElementCallService.swift 0.00% 51 Missing ⚠️
...urces/Screens/CallScreen/CallScreenViewModel.swift 0.00% 36 Missing ⚠️
...X/Sources/Screens/CallScreen/View/CallScreen.swift 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3140      +/-   ##
===========================================
- Coverage    77.27%   77.24%   -0.04%     
===========================================
  Files          715      715              
  Lines        55598    55643      +45     
===========================================
+ Hits         42963    42979      +16     
- Misses       12635    12664      +29     
Flag Coverage Δ
unittests 68.41% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@stefanceriu stefanceriu merged commit 0ad8f3c into develop Aug 8, 2024
12 checks passed
@stefanceriu stefanceriu deleted the stefan/elementCallFixes branch August 8, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix for bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants