1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 14:25:38 +02:00

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
This commit is contained in:
Sébastien Blin 2023-02-03 14:00:14 -05:00
parent 564581b1f7
commit 1a4fffffee

View file

@ -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
}
}