checkFriend method

  1. @override
Future<List<V2TimFriendCheckResult>?> checkFriend({
  1. required List<String> userIDList,
  2. required FriendTypeEnum checkType,
})
override

Implementation

@override
Future<List<V2TimFriendCheckResult>?> checkFriend({
  required List<String> userIDList,
  required FriendTypeEnum checkType,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getFriendshipManager()
      .checkFriend(userIDList: userIDList, checkType: checkType);
  if (res.code == 0) {
    return res.data;
  } else {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code));
    return null;
  }
}