From db72bdf24232eb59998d43b9bd7259dd309bfa0b Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 3 Nov 2025 09:29:19 +0100 Subject: [PATCH] Disable video button in audio-only mode during a call --- Linphone/UI/Call/CallView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Linphone/UI/Call/CallView.swift b/Linphone/UI/Call/CallView.swift index a941ff167..1381a3c65 100644 --- a/Linphone/UI/Call/CallView.swift +++ b/Linphone/UI/Call/CallView.swift @@ -1977,9 +1977,9 @@ struct CallView: View { .frame(width: buttonSize, height: buttonSize) .background(Color.gray500) .cornerRadius(40) - .disabled(callViewModel.isPaused || telecomManager.isPausedByRemote || telecomManager.outgoingCallStarted) + .disabled(callViewModel.isPaused || telecomManager.isPausedByRemote || telecomManager.outgoingCallStarted || optionsChangeLayout == 3) - if callViewModel.isPaused || telecomManager.isPausedByRemote || telecomManager.outgoingCallStarted { + if callViewModel.isPaused || telecomManager.isPausedByRemote || telecomManager.outgoingCallStarted || optionsChangeLayout == 3 { Color.gray600.opacity(0.8) .cornerRadius(40) .allowsHitTesting(false)