Require video for callkit even if voice call only to workaround a bug answering calls on the lock screen (#5366)

This commit is contained in:
Valere Fedronic
2026-04-09 16:18:06 +02:00
committed by GitHub
parent 1a5a709e27
commit 7434d531b2
2 changed files with 8 additions and 2 deletions
@@ -73,7 +73,9 @@ final class ElementCallServiceTests {
#expect(callProvider.reportNewIncomingCallWithUpdateCompletionCalled)
// Verify the provider was called with a CXCallUpdate that has video enabled
if let args = callProvider.reportNewIncomingCallWithUpdateCompletionReceivedArguments {
#expect(args.update.hasVideo == false)
// Due to a limitation on Callkit and Webviews, we currently have to report voice calls as having video,
// even if they are voice calls :/ If not the webview is not started and the call is not shown to the user.
#expect(args.update.hasVideo == true)
} else {
Issue.record("Expected reportNewIncomingCallWithUpdateCompletionReceivedArguments to be captured")
}