From 502eab72786b4049f1c453456bc1e3c24c3b85f6 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Mon, 17 Aug 2015 14:57:28 -0500 Subject: [PATCH] Only update the "start muted" settings on precense from a moderator. --- modules/xmpp/strophe.emuc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/xmpp/strophe.emuc.js b/modules/xmpp/strophe.emuc.js index 5bf7ea185..a01b59772 100644 --- a/modules/xmpp/strophe.emuc.js +++ b/modules/xmpp/strophe.emuc.js @@ -150,10 +150,10 @@ module.exports = function(XMPP, eventEmitter) { } var startMuted = $(pres).find('>startmuted'); - if (startMuted.length) - { + if (startMuted.length && Moderator.isPeerModerator(from)) { eventEmitter.emit(XMPPEvents.START_MUTED_SETTING_CHANGED, - startMuted.attr("audio") === "true", startMuted.attr("video") === "true"); + startMuted.attr("audio") === "true", + startMuted.attr("video") === "true"); } var devices = $(pres).find('>devices');