[fix] Fixing an issue with the first argument of the `leaveallrooms` event handler

The first argument of the handler is the array of rooms where the client was connected to, but this array was not passed to the function.