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(visitors): Checks mainMeetingParticipants array to allow joins.

damencho22ed00724da1
diff --git a/resources/prosody-plugins/mod_visitors_component.lua b/resources/prosody-plugins/mod_visitors_component.lua
index deba8bf816..c9f2c6369a 100644
--- a/resources/prosody-plugins/mod_visitors_component.lua
+++ b/resources/prosody-plugins/mod_visitors_component.lua
@@ -476,7 +476,8 @@ process_host_module(muc_domain_prefix..'.'..muc_domain_base, function(host_modul
if auto_allow_promotion
or ignore_list:contains(jid.host(stanza.attr.from)) -- jibri or other domains to ignore
or is_sip_jigasi(stanza)
- or is_sip_jibri_join(stanza) then
+ or is_sip_jibri_join(stanza)
+ or table_find(room._data.mainMeetingParticipants, session.jitsi_meet_context_user and session.jitsi_meet_context_user.id) then
return;
end
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index f45bbcea73..860689a068 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -597,7 +597,7 @@ function table_shallow_copy(t)
end
local function table_find(tab, val)
- if not tab then
+ if not tab or val == nil then
return nil
end