Only update the "start muted" settings on precense from a moderator.
This commit is contained in:
parent
332aafbe20
commit
502eab7278
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue