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(persistent_lobby): properly destroy main room when empty
Shawn7249406960cc
diff --git a/resources/prosody-plugins/mod_persistent_lobby.lua b/resources/prosody-plugins/mod_persistent_lobby.luaindex 2ce0f2c422..b437646a6b 100644--- a/resources/prosody-plugins/mod_persistent_lobby.lua+++ b/resources/prosody-plugins/mod_persistent_lobby.lua@@ -84,12 +84,10 @@ local function has_persistent_lobby(room)end--- Helper method to trigger main room destroy if room is persistent (no auto-delete) and destroy not yet triggered+-- Helper method to trigger main room destroylocal function trigger_room_destroy(room)- if room.get_persistent(room) and room._data.room_destroy_triggered == nil then- room._data.room_destroy_triggered = true;- main_muc_module:fire_event("muc-room-destroyed", { room = room; });- end+ room:set_persistent(false);+ room:destroy(nil, 'main room and lobby now empty');end