Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Fixes moderator related elements when everyone is moderator
yanasaf91fb50b21c
diff --git a/index.html b/index.htmlindex 0cae4698f5..48c8e1e3af 100644--- a/index.html+++ b/index.html@@ -245,7 +245,6 @@<!--<video id="localVideo" autoplay muted></video> - is now per stream generated --></span><audio id="localAudio" autoplay muted></audio>- <span class="focusindicator"></span><div class="videocontainer__toolbar"></div></span><audio id="userJoined" src="sounds/joined.wav" preload="auto"></audio>diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 88b53343e2..22802db3dd 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -298,9 +298,9 @@ UI.initConference = function () {// Add myself to the contact list.ContactList.addContact(id, true);- //update default button states before showing the toolbar- //if local role changes buttons state will be again updated- UI.updateLocalRole(false);+ // Update default button states before showing the toolbar+ // if local role changes buttons state will be again updated.+ UI.updateLocalRole(APP.conference.isModerator);UI.showToolbar();diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex 78f8db9c68..cbb2292932 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -465,9 +465,10 @@ var VideoLayout = {return;if (member.isModerator()) {- remoteVideo.removeRemoteVideoMenu();remoteVideo.createModeratorIndicatorElement();- } else if (isModerator) {+ }++ if (isModerator) {// We are moderator, but user is not - add menuif(!remoteVideo.hasRemoteVideoMenu) {remoteVideo.addRemoteVideoMenu();