To leave a chat room, click on i in the top right of the room to navigate to Chat Details. Click View members list and hover over your name to reveal a … menu. Click the menu then, Leave room.
You can also leave the room if you click on Options, then Member Permissions. Click on Leave Room to exit.