UserInfo.fromV2TimFriendInfo constructor

UserInfo.fromV2TimFriendInfo(
  1. V2TimFriendInfo friendInfo
)

Implementation

factory UserInfo.fromV2TimFriendInfo(V2TimFriendInfo friendInfo) {
  return UserInfo(
    friendInfo.userID,
    friendInfo.userProfile?.nickName ?? friendInfo.userID,
    friendInfo.userProfile?.faceUrl ?? Constants.defaultAvatarUrl,
  );
}