Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

damencho80e2c0521904
diff --git a/resources/prosody-plugins/mod_av_moderation_component.lua b/resources/prosody-plugins/mod_av_moderation_component.lua
index de8945f609..0f7b769dac 100644
--- a/resources/prosody-plugins/mod_av_moderation_component.lua
+++ b/resources/prosody-plugins/mod_av_moderation_component.lua
@@ -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