fix(av-moderation): Fixes sending wrong whitelist in json.
This commit is contained in:
parent
0bdc7d42c5
commit
80e2c05219
|
@ -136,12 +136,11 @@ function on_message(event)
|
|||
room.av_moderation = {};
|
||||
room.av_moderation_actors = {};
|
||||
end
|
||||
room.av_moderation[mediaType] = {};
|
||||
room.av_moderation_actors[mediaType] = occupant.nick;
|
||||
end
|
||||
else
|
||||
enabled = false;
|
||||
if not room.av_moderation or not room.av_moderation[mediaType] then
|
||||
if not room.av_moderation then
|
||||
module:log('warn', 'Concurrent moderator enable/disable request or something is out of sync');
|
||||
return true;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue