How to leave the meeting room without leave dialog?

I want to allow users to only use leave meetings, not end meetings.

The previous version had a function called leavecall () which is now gone.

 How to leave the meeting room without leave dialog?