Kaynağa Gözat

Merge pull request #933 from jitsi/fix-everyone-moderator

Fixes moderator related elements when everyone is moderator
master
Дамян Минков 8 yıl önce
ebeveyn
işleme
c437f64f35
3 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 0
    1
      index.html
  2. 3
    3
      modules/UI/UI.js
  3. 3
    2
      modules/UI/videolayout/VideoLayout.js

+ 0
- 1
index.html Dosyayı Görüntüle

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

+ 3
- 3
modules/UI/UI.js Dosyayı Görüntüle

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

+ 3
- 2
modules/UI/videolayout/VideoLayout.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet