Fixes moderator icon on remote videos.
This commit is contained in:
parent
f8c12304dc
commit
cb40ab5420
|
@ -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…
Reference in New Issue