Prevent Talk users from leaving a conversation

It would be very useful to be able to block the user’s ability to leave a conversation, especially in an educational environment. As there is already a canLeaveConversation boolean value in the API, I’d like to use this. Can anyone give me any further advice on how to achieve this?

https://nextcloud-talk.readthedocs.io/en/latest/conversation/