Disable Lobby From Code

I am currently trying to create a new feature. Let’s say the Lobby feature is enabled and the last moderator has clicked on the leave button. At that time first the Lobby feature should get disabled and then the person should leave. So I am using APP.conference.disableLobby() function to disable the Lobby. But I am getting an error stating “APP.conference.disableLobby is not a function Script”.
Any help or suggestion on this regard!

Thanks in advance!

That function doesn’t exist in APP.conference. You’d need to add it first, if you want to use it.

ok thanks