Breakout Room - get main roomId

I’m developing a prosody plugin and I need to define the main room. I looked at the BR implementation - useful variables that could help me are made local.

How can I define the main room jid (is it possible to hook a message?)

@wfleischer @saghul Can you please take a look? How to get the id of the main room?


local function sendUserStatus(event)
// get main room jid

module:hook(“muc-occupant-joined”, function(event)
end, -2);

Note the breakout rooms happen in another MUC, so any room in the main MUC is a main room.

good clue. I modified this component and got what i want