deleteFriend static method

Future<NIMResult<void>> deleteFriend(
  1. String userId
)

删除好友

Implementation

static Future<NIMResult<void>> deleteFriend(String userId) async {
  var deleteAlias = await ConfigRepo.getDeleteAlias();
  return NimCore.instance.userService
      .deleteFriend(userId: userId, includeAlias: deleteAlias);
}