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(prosody): A nil check.

damenchob57f8f928e65
diff --git a/resources/prosody-plugins/mod_muc_lobby_rooms.lua b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
index 595c3f0f5a..52813f8cb9 100644
--- a/resources/prosody-plugins/mod_muc_lobby_rooms.lua
+++ b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
@@ -419,7 +419,9 @@ function process_lobby_muc_loaded(lobby_muc, host_module)
if room and room._data.lobby_disabled then
-- we cannot remove the child from the stanza so let's just change the type
local lobby_identity = reply:get_child_with_attr('identity', nil, 'type', LOBBY_IDENTITY_TYPE);
- lobby_identity.attr.type = 'DISABLED_'..LOBBY_IDENTITY_TYPE;
+ if lobby_identity then
+ lobby_identity.attr.type = 'DISABLED_'..LOBBY_IDENTITY_TYPE;
+ end
end
if check_display_name_required and room and room._data.lobbyroom then