Skip to content

Commit 443aa90

Browse files
committed
fix(visitors): Let people join lobby when main room is empty but with lobby.
1 parent 0392e7f commit 443aa90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

resources/prosody-plugins/mod_visitors_component.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ process_host_module(muc_domain_prefix..'.'..muc_domain_base, function(host_modul
565565
elseif room._data.participants then
566566
-- This is non jaas room which has a list of participants allowed to participate in the main room
567567
-- but this occupant is not one of them and the room is either not live or has no participants joined
568+
if room:get_members_only() then
569+
-- if there is a lobby, let's pass it through it will wait for the main participant
570+
return;
571+
end
568572
session.log('warn',
569573
'Deny user join in the main not live meeting, not in the list of main participants');
570574
session.send(st.error_reply(

0 commit comments

Comments
 (0)