From 1a4fffffeef522b5e9ba067a0916add5cdf2c51e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Fri, 3 Feb 2023 14:00:14 -0500
Subject: [PATCH] ongoingcallpage: remove useless code

Calling a conference and stopping the call will lead the camera
opened. This code seems useless and bugguy.

Change-Id: Iff06b03838a2e13fe378f60f84df96ceb7735f1f
---
 src/app/mainview/components/OngoingCallPage.qml | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/app/mainview/components/OngoingCallPage.qml b/src/app/mainview/components/OngoingCallPage.qml
index ad147b5a6..476f36d1d 100644
--- a/src/app/mainview/components/OngoingCallPage.qml
+++ b/src/app/mainview/components/OngoingCallPage.qml
@@ -319,15 +319,6 @@ Rectangle {
                     target: CurrentCall
 
                     function onPreviewIdChanged() {
-                        if (CurrentCall.previewId !== "") {
-                            if (root.callPreviewId !== "" &&
-                                    root.callPreviewId !== CurrentCall.previewId) {
-                                VideoDevices.stopDevice(root.callPreviewId)
-                            }
-                            VideoDevices.startDevice(CurrentCall.previewId)
-                        } else {
-                            VideoDevices.stopDevice(root.callPreviewId)
-                        }
                         root.callPreviewId = CurrentCall.previewId
                     }
                 }
-- 
GitLab