refuseFriendApplication method
Implementation
Future<dynamic> refuseFriendApplication(Map<String, dynamic> params) async {
try {
final formateParams = mapToJSObj({"userID": params["userID"]});
final result = await promiseToFuture(
timeWeb!.refuseFriendApplication(formateParams));
if (result != null) {
log(result);
}
return CommonUtils.returnSuccess<V2TimFriendOperationResult>(null);
} catch (error) {
return CommonUtils.returnErrorForValueCb<V2TimFriendOperationResult>(
error);
}
}