Fixes moderator icon on remote videos.

pull/456/head
damencho 10 years ago
parent f8c12304dc
commit cb40ab5420
  1. 3
      conference.js
  2. 5
      modules/UI/UI.js
  3. 1
      modules/UI/videolayout/VideoLayout.js

@ -296,6 +296,9 @@ export default {
console.log('USER %s connnected', id, user);
// FIXME email???
APP.UI.addUser(id, user.getDisplayName());
// chek the roles for the new user and reflect them
APP.UI.updateUserRole(user);
});
room.on(ConferenceEvents.USER_LEFT, (id, user) => {
console.log('USER %s LEFT', id, user);

@ -426,6 +426,11 @@ UI.updateLocalRole = function (isModerator) {
}
};
/**
* Check the role for the user and reflect it in the UI, moderator ui indication
* and notifies user who is the moderator
* @param user to check for moderator
*/
UI.updateUserRole = function (user) {
VideoLayout.showModeratorIndicator();

@ -384,6 +384,7 @@ var VideoLayout = {
/**
* Shows a visual indicator for the moderator of the conference.
* On local or remote participants.
*/
showModeratorIndicator () {
let isModerator = APP.conference.isModerator;

Loading…
Cancel
Save