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?

Summary

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

module:hook(“muc-occupant-joined”, function(event)
sendUserStatus(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