From 8cc035e5af1c55fdfbb3136a1c18e4eb13ba6afb Mon Sep 17 00:00:00 2001 From: Timo Date: Thu, 26 Jun 2025 18:07:45 +0200 Subject: [PATCH] Add `isSpeaker` to available devices list. This is required so that EC "thinks" there is a speaker and an earpiece. If this condition is not met it will not show the toggle button. So this fixes showing the toggle button on EX for earpiece speaker toggle. --- ElementX/Sources/Screens/CallScreen/CallScreenViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Screens/CallScreen/CallScreenViewModel.swift b/ElementX/Sources/Screens/CallScreen/CallScreenViewModel.swift index 4c35f11ee..0f8a7646a 100644 --- a/ElementX/Sources/Screens/CallScreen/CallScreenViewModel.swift +++ b/ElementX/Sources/Screens/CallScreen/CallScreenViewModel.swift @@ -294,7 +294,7 @@ class CallScreenViewModel: CallScreenViewModelType, CallScreenViewModelProtocol let deviceList = if currentOutput.portType == .builtInSpeaker { // This allows the webview to display the earpiece option - "{id: '\(currentOutput.uid)', name: '\(currentOutput.portName)', forEarpiece: true}" + "{id: '\(currentOutput.uid)', name: '\(currentOutput.portName)', forEarpiece: true, isSpeaker: true}" } else { // Doesn't matter because the switch is handled through the OS "{id: 'dummy', name: 'dummy'}"