Pārlūkot izejas kodu

Fixes moderator icon on remote videos.

j8
damencho 9 gadus atpakaļ
vecāks
revīzija
cb40ab5420
3 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 3
    0
      conference.js
  2. 5
    0
      modules/UI/UI.js
  3. 1
    0
      modules/UI/videolayout/VideoLayout.js

+ 3
- 0
conference.js Parādīt failu

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

+ 5
- 0
modules/UI/UI.js Parādīt failu

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

+ 1
- 0
modules/UI/videolayout/VideoLayout.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt