acceptAddFriend static method

Future<NIMResult<void>> acceptAddFriend(
  1. String userId,
  2. bool agree
)

同意(或者拒绝)添加好友申请

Implementation

static Future<NIMResult<void>> acceptAddFriend(String userId, bool agree) {
  return NimCore.instance.userService
      .ackAddFriend(userId: userId, isAgree: agree);
}