getSelfProfile method

Future<SyImUserProfile> getSelfProfile()

Implementation

Future<SyImUserProfile> getSelfProfile() async {
  return _call('getSelfUserInfo', () async {
    final info = await OpenIM.iMManager.userManager.getSelfUserInfo();
    return SyImUserProfile(
      userId: info.userID ?? '',
      nickname: info.nickname,
      faceUrl: info.faceURL,
      ex: info.ex,
    );
  });
}