refuseFriendApplication method

  1. @override
Future<V2TimFriendOperationResult?> refuseFriendApplication({
  1. required FriendApplicationTypeEnum type,
  2. required String userID,
})
override

Implementation

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