add a function name AddFriendToList() in class GroupChatDialog