From bc3bdeec05f39e10a0f4ff8e26b3e11e30652733 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 13 Apr 2020 18:49:02 +0200 Subject: [PATCH] Fix issue on audio calls --- assets/js/components/calls/window.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 75118d71..4f80e62b 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -254,11 +254,12 @@ class CallWindow extends CustomEvents { ) // Video button - setButtonSelected( - bottomArea.querySelector("[data-label=\"camera\"]"), - this.mainStream && this.mainStream.getVideoTracks().length > 0 && - this.mainStream.getVideoTracks()[0].enabled - ) + if(this.allowVideo) + setButtonSelected( + bottomArea.querySelector("[data-label=\"camera\"]"), + this.mainStream && this.mainStream.getVideoTracks().length > 0 && + this.mainStream.getVideoTracks()[0].enabled + ) } this.on("localVideo", () => {