From 5cd76a4646647fe4d14ea630c68beae2d71fb955 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 29 Jan 2026 16:13:33 +0100 Subject: [PATCH 1/2] Add "call.pro.element.io" in the list of known hosts for Element Call. --- .../android/features/call/impl/utils/CallIntentDataParser.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/CallIntentDataParser.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/CallIntentDataParser.kt index f5433c15a0..0fa515742f 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/CallIntentDataParser.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/CallIntentDataParser.kt @@ -17,6 +17,7 @@ class CallIntentDataParser { private val validHttpSchemes = sequenceOf("https") private val knownHosts = sequenceOf( "call.element.io", + "call.pro.element.io", ) fun parse(data: String?): String? { From 8a21f3611532407e2b3ebfacc0bb237209632a1a Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 29 Jan 2026 16:21:00 +0100 Subject: [PATCH 2/2] Ensure that the call is not closed when it is an External call. --- .../call/impl/ui/CallScreenPresenter.kt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenPresenter.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenPresenter.kt index 7fbcf1ba71..497b121da5 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenPresenter.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenPresenter.kt @@ -149,15 +149,18 @@ class CallScreenPresenter( .launchIn(this) } - LaunchedEffect(Unit) { - // Wait for the call to be joined, if it takes too long, we display an error - delay(10.seconds) + if (callType is CallType.RoomCall) { + // Note: For external calls isWidgetLoaded will always be false + LaunchedEffect(Unit) { + // Wait for the call to be joined, if it takes too long, we display an error + delay(10.seconds) - if (!isWidgetLoaded) { - Timber.w("The call took too long to load. Displaying an error before exiting.") + if (!isWidgetLoaded) { + Timber.w("The call took too long to load. Displaying an error before exiting.") - // This will display a simple 'Sorry, an error occurred' dialog and force the user to exit the call - webViewError = "" + // This will display a simple 'Sorry, an error occurred' dialog and force the user to exit the call + webViewError = "" + } } } }