Fixes moderator related elements when everyone is moderator

This commit is contained in:
yanas 2016-09-23 17:42:29 -05:00
parent d319e837f5
commit af91fb50b2
3 changed files with 6 additions and 6 deletions

View File

@ -245,7 +245,6 @@
<!--<video id="localVideo" autoplay muted></video> - is now per stream generated --> <!--<video id="localVideo" autoplay muted></video> - is now per stream generated -->
</span> </span>
<audio id="localAudio" autoplay muted></audio> <audio id="localAudio" autoplay muted></audio>
<span class="focusindicator"></span>
<div class="videocontainer__toolbar"></div> <div class="videocontainer__toolbar"></div>
</span> </span>
<audio id="userJoined" src="sounds/joined.wav" preload="auto"></audio> <audio id="userJoined" src="sounds/joined.wav" preload="auto"></audio>

View File

@ -298,9 +298,9 @@ UI.initConference = function () {
// Add myself to the contact list. // Add myself to the contact list.
ContactList.addContact(id, true); ContactList.addContact(id, true);
//update default button states before showing the toolbar // Update default button states before showing the toolbar
//if local role changes buttons state will be again updated // if local role changes buttons state will be again updated.
UI.updateLocalRole(false); UI.updateLocalRole(APP.conference.isModerator);
UI.showToolbar(); UI.showToolbar();

View File

@ -465,9 +465,10 @@ var VideoLayout = {
return; return;
if (member.isModerator()) { if (member.isModerator()) {
remoteVideo.removeRemoteVideoMenu();
remoteVideo.createModeratorIndicatorElement(); remoteVideo.createModeratorIndicatorElement();
} else if (isModerator) { }
if (isModerator) {
// We are moderator, but user is not - add menu // We are moderator, but user is not - add menu
if(!remoteVideo.hasRemoteVideoMenu) { if(!remoteVideo.hasRemoteVideoMenu) {
remoteVideo.addRemoteVideoMenu(); remoteVideo.addRemoteVideoMenu();