Sfoglia il codice sorgente

Only update the "start muted" settings on precense from a moderator.

master
Boris Grozev 10 anni fa
parent
commit
502eab7278
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      modules/xmpp/strophe.emuc.js

+ 3
- 3
modules/xmpp/strophe.emuc.js Vedi File

150
             }
150
             }
151
 
151
 
152
             var startMuted = $(pres).find('>startmuted');
152
             var startMuted = $(pres).find('>startmuted');
153
-            if (startMuted.length)
154
-            {
153
+            if (startMuted.length && Moderator.isPeerModerator(from)) {
155
                 eventEmitter.emit(XMPPEvents.START_MUTED_SETTING_CHANGED,
154
                 eventEmitter.emit(XMPPEvents.START_MUTED_SETTING_CHANGED,
156
-                    startMuted.attr("audio") === "true", startMuted.attr("video") === "true");
155
+                    startMuted.attr("audio") === "true",
156
+                    startMuted.attr("video") === "true");
157
             }
157
             }
158
 
158
 
159
             var devices = $(pres).find('>devices');
159
             var devices = $(pres).find('>devices');

Loading…
Annulla
Salva