Fixes moderator icon on remote videos.

This commit is contained in:
damencho 2016-01-13 15:17:33 -06:00
parent f8c12304dc
commit cb40ab5420
3 changed files with 9 additions and 0 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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;