refuseGroupApplication method

  1. @override
Future<V2TimCallback> refuseGroupApplication({
  1. String? reason,
  2. required int addTime,
  3. required String groupID,
  4. required String fromUser,
  5. required String toUser,
  6. required GroupApplicationTypeEnum type,
})
override

Implementation

@override
Future<V2TimCallback> refuseGroupApplication(
    {String? reason,
    required int addTime,
    required String groupID,
    required String fromUser,
    required String toUser,
    required GroupApplicationTypeEnum type}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .refuseGroupApplication(
          groupID: groupID,
          fromUser: fromUser,
          toUser: toUser,
          type: type,
          addTime: addTime,
          reason: reason);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}