Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Fix setting whitelist when av_moderation is initially enabled. (#16235)
bgrozev2f3df2c66fcd
diff --git a/resources/prosody-plugins/mod_av_moderation_component.lua b/resources/prosody-plugins/mod_av_moderation_component.luaindex 6f2683ebe4..c109990c7c 100644--- a/resources/prosody-plugins/mod_av_moderation_component.lua+++ b/resources/prosody-plugins/mod_av_moderation_component.lua@@ -157,7 +157,7 @@ function start_av_moderation(room, mediaType, occupant)room.av_moderation = {};room.av_moderation_actors = {};end- room.av_moderation[mediaType] = array{};+ room.av_moderation[mediaType] = array{ internal_room_jid_match_rewrite(occupant.nick) };-- We want to set startMuted policy in metadata, in case of new participants are joining to respect-- it, that will be enforced by jicofo@@ -358,7 +358,7 @@ function occupant_joined(event)-- from allowners module) but iterating over room occupants returns the correct rolefor _, room_occupant in room:each_occupant() do-- if moderator send the whitelist- if room_occupant.nick == occupant.nick and room_occupant.role == 'moderator' then+ if (room_occupant.nick == occupant.nick and room_occupant.role == 'moderator') or ends_with(room_occupant.nick, '/focus') thennotify_whitelist_change(room_occupant.jid, false, room);endend