Add the logic for toggling minimized chats