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(wait_for_host): Make sure the main room is set back to non-persistent.

damenchofbb645631714
diff --git a/resources/prosody-plugins/mod_muc_wait_for_host.lua b/resources/prosody-plugins/mod_muc_wait_for_host.lua
index 800692a2e2..41506cd36e 100644
--- a/resources/prosody-plugins/mod_muc_wait_for_host.lua
+++ b/resources/prosody-plugins/mod_muc_wait_for_host.lua
@@ -65,6 +65,8 @@ module:hook('muc-occupant-pre-join', function (event)
if module:fire_event('room_has_host', { room = room; occupant = occupant; session = session; }) then
-- the host is here, let's drop the lobby
room:set_members_only(false);
+ -- this is set by create-persistent-lobby-room, so let's clear it
+ room:set_persistent(false);
-- let's set the default role of 'participant' for the newly created occupant as it was nil when created
-- when the room was still members_only, later if not disabled this participant will become a moderator