Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(remote-video): update remote video menu if it exists

Leonard Kim73dd7440d07a
diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js
index 945ca0dfa1..b04d6fec6f 100644
--- a/modules/UI/videolayout/RemoteVideo.js
+++ b/modules/UI/videolayout/RemoteVideo.js
@@ -436,9 +436,12 @@ RemoteVideo.prototype._setAudioVolume = function (scale, newVal) {
* @param force to work even if popover is not visible
*/
RemoteVideo.prototype.updateRemoteVideoMenu = function (isMuted, force) {
-
this.isAudioMuted = isMuted;
+ if (!this.popover) {
+ return;
+ }
+
// generate content, translate it and add it to document only if
// popover is visible or we force to do so.
if(this.popover.popoverShown || force) {