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(breakout-rooms): Adds few nil checks in lua code.
Дамян Минков04f9ad32e167
diff --git a/resources/prosody-plugins/mod_muc_breakout_rooms.lua b/resources/prosody-plugins/mod_muc_breakout_rooms.luaindex 5e8add9d34..c6debdd229 100644--- a/resources/prosody-plugins/mod_muc_breakout_rooms.lua+++ b/resources/prosody-plugins/mod_muc_breakout_rooms.lua@@ -213,7 +213,7 @@ endfunction destroy_breakout_room(room_jid, message)local main_room, main_room_jid = get_main_room(room_jid);- if room_jid == main_room_jid then+ if room_jid == main_room_jid or not main_room thenreturn;end@@ -339,7 +339,7 @@ function on_occupant_joined(event)local main_room = get_main_room(room.jid);- if main_room._data.breakout_rooms_active then+ if main_room and main_room._data.breakout_rooms_active thenif jid_node(event.occupant.jid) ~= 'focus' thenbroadcast_breakout_rooms(room.jid);end@@ -388,6 +388,10 @@ function on_occupant_left(event)local main_room = get_main_room(room_jid);+ if not main_room then+ return;+ end+if main_room._data.breakout_rooms_active and jid_node(event.occupant.jid) ~= 'focus' thenbroadcast_breakout_rooms(room_jid);end@@ -477,7 +481,7 @@ function process_breakout_rooms_muc_loaded(breakout_rooms_muc, host_module)event.formdata['muc#roominfo_breakout_main_room'] = main_room_jid;-- If the main room has a lobby, make it so this breakout room also uses it.- if (main_room._data.lobbyroom and main_room:get_members_only()) then+ if (main_room and main_room._data.lobbyroom and main_room:get_members_only()) thentable.insert(event.form, {name = 'muc#roominfo_lobbyroom';label = 'Lobby room jid';