fix(av-moderation): Fixes sending wrong whitelist in json.

This commit is contained in:
damencho 2021-07-09 15:39:02 +03:00 committed by Дамян Минков
parent 0bdc7d42c5
commit 80e2c05219
1 changed files with 1 additions and 2 deletions

View File

@ -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