Skip to content

Commit 854a077

Browse files
authored
fix(lobby): Send virtual jid for main room destroy. (#16724)
* fix(lobby): Send virtual jid for main room destroy. * squash: Update and when manually disable lobby.
1 parent f903a7a commit 854a077

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

resources/prosody-plugins/mod_muc_lobby_rooms.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ local NOTIFY_LOBBY_ACCESS_DENIED = 'LOBBY-ACCESS-DENIED';
4848
local util = module:require "util";
4949
local ends_with = util.ends_with;
5050
local get_room_by_name_and_subdomain = util.get_room_by_name_and_subdomain;
51+
local internal_room_jid_match_rewrite = util.internal_room_jid_match_rewrite;
5152
local get_room_from_jid = util.get_room_from_jid;
5253
local is_healthcheck_room = util.is_healthcheck_room;
5354
local presence_check_status = util.presence_check_status;
@@ -502,7 +503,7 @@ process_host_module(main_muc_component_config, function(host_module, host)
502503
host_module:fire_event('room-metadata-changed', { room = room; });
503504
end
504505
elseif room._data.lobbyroom then
505-
destroy_lobby_room(room, room.jid, nil);
506+
destroy_lobby_room(room, internal_room_jid_match_rewrite(room.jid), nil); --
506507
module:fire_event('jitsi-lobby-disabled', { room = room; });
507508
notify_lobby_enabled(room, actor, false);
508509
end

resources/prosody-plugins/mod_muc_wait_for_host.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ local is_admin = util.is_admin;
1212
local is_healthcheck_room = util.is_healthcheck_room;
1313
local is_moderated = util.is_moderated;
1414
local process_host_module = util.process_host_module;
15+
local internal_room_jid_match_rewrite = util.internal_room_jid_match_rewrite;
1516

1617
local disable_auto_owners = module:get_option_boolean('wait_for_host_disable_auto_owners', false);
1718

@@ -78,7 +79,7 @@ module:hook('muc-occupant-pre-join', function (event)
7879
module:fire_event('room_host_arrived', room.jid, session);
7980
lobby_host:fire_event('destroy-lobby-room', {
8081
room = room,
81-
newjid = room.jid,
82+
newjid = internal_room_jid_match_rewrite(room.jid),
8283
message = 'Host arrived.',
8384
});
8485
elseif not room:get_members_only() then

0 commit comments

Comments
 (0)