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(breakout-rooms): Fix polls in main when breakout is enabled.

damenchoeaffd8b8f789
diff --git a/resources/prosody-plugins/mod_polls_component.lua b/resources/prosody-plugins/mod_polls_component.lua
index 1cdb856c8a..97e86d9c2a 100644
--- a/resources/prosody-plugins/mod_polls_component.lua
+++ b/resources/prosody-plugins/mod_polls_component.lua
@@ -143,17 +143,15 @@ end
occupant = main_room:get_occupant_by_real_jid(occupant_jid);
- if main_room._data.breakout_rooms_active then
+ if main_room._data.breakout_rooms_active and not occupant then
-- let's find is this participant in the main room or in some breakout room
- if not occupant then
- -- not in main room, let's check breakout rooms
- for breakout_room_jid, subject in pairs(main_room._data.breakout_rooms or {}) do
- local breakout_room = get_room_from_jid(breakout_room_jid);
- occupant = breakout_room:get_occupant_by_real_jid(occupant_jid);
- if occupant then
- room = breakout_room;
- break;
- end
+ -- not in main room, let's check breakout rooms
+ for breakout_room_jid, subject in pairs(main_room._data.breakout_rooms or {}) do
+ local breakout_room = get_room_from_jid(breakout_room_jid);
+ occupant = breakout_room:get_occupant_by_real_jid(occupant_jid);
+ if occupant then
+ room = breakout_room;
+ break;
end
end
else