addFriend static method
添加好友
Implementation
static Future<NIMResult<void>> addFriend(
String userId, NIMVerifyType verifyType) async {
var isBlackList = await NimCore.instance.userService.isInBlackList(userId);
if (isBlackList.data == true) {
await NimCore.instance.userService.removeFromBlackList(userId);
}
return NimCore.instance.userService
.addFriend(userId: userId, verifyType: verifyType);
}