private static void AddChattingFriend(MessageModel model) { var chattingFriend = new UserInfoModel { id = model.FromUid, nickname = model.FromUname, }; Friend.AddChatFriend(chattingFriend); }