Get current moderator in the room using lib-jitsi-meet

I’m using Jitsi meet default deployment and lib jitsi meet. I need to display the real time current moderator for all the participants, on the UI side. Is there a method like or something similar?
Thank you.

You can do something like: room.getParticipants().filter(p => p.isModerator())

1 Like

That’ll work. Thanks Damian.