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

This commit is contained in:
Boris Grozev 2015-08-17 14:57:28 -05:00
parent 332aafbe20
commit 502eab7278
1 changed files with 3 additions and 3 deletions

View File

@ -150,10 +150,10 @@ module.exports = function(XMPP, eventEmitter) {
} }
var startMuted = $(pres).find('>startmuted'); var startMuted = $(pres).find('>startmuted');
if (startMuted.length) if (startMuted.length && Moderator.isPeerModerator(from)) {
{
eventEmitter.emit(XMPPEvents.START_MUTED_SETTING_CHANGED, 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'); var devices = $(pres).find('>devices');