fix(breakout-rooms) fix error in case main room is no longer available

This commit is contained in:
Saúl Ibarra Corretgé 2021-11-24 09:07:37 +01:00 committed by Saúl Ibarra Corretgé
parent a618697e34
commit ef93584c2b
1 changed files with 5 additions and 0 deletions

View File

@ -487,6 +487,11 @@ function process_breakout_rooms_muc_loaded(breakout_rooms_muc, host_module)
room_mt.get_members_only = function(room)
local main_room = get_main_room(room.jid);
if not main_room then
module:log('error', 'No main room (%s)!', room.jid);
return false;
end
return main_room.get_members_only(main_room)
end