First, click the name of the group chat (by default, it’ll just be a string of the users in the chat) and then click Leave channel: