unblockUser method

void unblockUser ({String groupId, String userName, dynamic onSuccess(), dynamic onError(int errorCode, String desc) })

将用户从群组的黑名单移除

Implementation

void unblockUser({
  final String groupId,
  final String userName,
  onSuccess(),
  onError(int errorCode, String desc)}){
  Future<Map<String, dynamic>> result = _emGroupManagerChannel
      .invokeMethod(EMSDKMethod.unblockUser, {"groupId" : groupId, "userName" : userName});
  result.then((response){
    if (response['success']) {
      if (onSuccess != null) {
        onSuccess();
      }
    } else {
      if (onError != null) onError(response['code'], response['desc']);
    }
  });
}