Fixes a problem not showing remote video menu in case of all moderators. (#2130)

Removes hasRemoteVideoMenu from RemoteVideo.
In some cases where mod_muc_allowners is enabled we do not see the remote video menu. The problem was in the order of initialization of remote video component.
RemoteVideo#constructor -> Remotevideo#addaddRemoteVideoContainer -> Remotevideo#addRemoteVideoMenu  -> RemoteVideo#hasRemoteVideoMenu = true
Then in VideoLayout#showModeratorIndicator -> !remoteVideo.hasRemoteVideoMenu -> remoteVideo.addRemoteVideoMenu().
This commit is contained in:
Дамян Минков
2017-11-02 14:07:31 -05:00
committed by virtuacoplenny
parent 922bbb1798
commit 90070d9e9f
2 changed files with 6 additions and 13 deletions

View File

@@ -559,12 +559,7 @@ const VideoLayout = {
remoteVideo.addModeratorIndicator();
}
if (isModerator) {
// We are moderator, but user is not - add menu
if (!remoteVideo.hasRemoteVideoMenu) {
remoteVideo.addRemoteVideoMenu();
}
}
remoteVideo.updateRemoteVideoMenu();
});
},