Added function to get the number of peers and list of names for group chats.