Skip to content

Commit

Permalink
fix(breakout-rooms): Fixes reporting virtual jid of main room.
Browse files Browse the repository at this point in the history
When reporting the real jid, nothing matches in jicofo internals and we miss to match the room.
  • Loading branch information
damencho committed Sep 13, 2024
1 parent 756c4af commit 262cb04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/prosody-plugins/mod_muc_breakout_rooms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function process_breakout_rooms_muc_loaded(breakout_rooms_muc, host_module)
name = 'muc#roominfo_breakout_main_room';
label = 'The main room associated with this breakout room';
});
event.formdata['muc#roominfo_breakout_main_room'] = main_room_jid;
event.formdata['muc#roominfo_breakout_main_room'] = internal_room_jid_match_rewrite(main_room_jid);

-- If the main room has a lobby, make it so this breakout room also uses it.
if (main_room and main_room._data.lobbyroom and main_room:get_members_only()) then
Expand All @@ -553,7 +553,7 @@ function process_breakout_rooms_muc_loaded(breakout_rooms_muc, host_module)
table.insert(event.form, {
name = 'muc#roominfo_breakout_main_room';
label = 'The main room associated with this breakout room';
value = main_room_jid;
value = internal_room_jid_match_rewrite(main_room_jid);
});
end);

Expand Down

0 comments on commit 262cb04

Please sign in to comment.