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: Uses room jids for the lobby notifications.

damenchof73e9947c0ee
diff --git a/resources/prosody-plugins/mod_muc_lobby_rooms.lua b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
index 024bf7c6b9..f3a912fbe3 100644
--- a/resources/prosody-plugins/mod_muc_lobby_rooms.lua
+++ b/resources/prosody-plugins/mod_muc_lobby_rooms.lua
@@ -221,7 +221,7 @@ function process_lobby_muc_loaded(lobby_muc, host_module)
local actor, occupant, room, x = event.actor, event.occupant, event.room, event.x;
if check_status(x, '307') then
-- we need to notify in the main room
- notify_lobby_access(room.main_room, actor, occupant.jid, false);
+ notify_lobby_access(room.main_room, actor, occupant.nick, false);
end
end);
end
@@ -346,7 +346,12 @@ process_host_module(main_muc_component_config, function(host_module, host)
local from = stanza:get_child('x', 'http://jabber.org/protocol/muc#user')
:get_child('invite').attr.from;
- notify_lobby_access(room, from, invitee, true);
+ if room._data.lobbyroom then
+ local occupant = room._data.lobbyroom:get_occupant_by_real_jid(invitee);
+ if occupant then
+ notify_lobby_access(room, from, occupant.nick, true);
+ end
+ end
end);
end);