setFriendInfo method

  1. @override
Future<V2TimCallback> setFriendInfo({
  1. required String userID,
  2. String? friendRemark,
  3. Map<String, String>? friendCustomInfo,
})
override

Implementation

@override
Future<V2TimCallback> setFriendInfo({
  required String userID,
  String? friendRemark,
  Map<String, String>? friendCustomInfo,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getFriendshipManager()
      .setFriendInfo(
          friendRemark: friendRemark,
          friendCustomInfo: friendCustomInfo,
          userID: userID);
  if (res.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code));
  }
  return res;
}