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(breakout-rooms) fix error in case main room is no longer available

Saúl Ibarra Corretgéef93584c2bf7
diff --git a/resources/prosody-plugins/mod_muc_breakout_rooms.lua b/resources/prosody-plugins/mod_muc_breakout_rooms.lua
index 64b8a3f71b..e60a55d95d 100644
--- a/resources/prosody-plugins/mod_muc_breakout_rooms.lua
+++ b/resources/prosody-plugins/mod_muc_breakout_rooms.lua
@@ -487,6 +487,11 @@ function process_breakout_rooms_muc_loaded(breakout_rooms_muc, host_module)
room_mt.get_members_only = function(room)
local main_room = get_main_room(room.jid);
+ if not main_room then
+ module:log('error', 'No main room (%s)!', room.jid);
+ return false;
+ end
+
return main_room.get_members_only(main_room)
end