fixed issue related to the http error 405 on leaveroom method