removeUserFromBlockList method
- String userId
~english Removes the contact from the block ids.
Param userId
The contact to be removed from the block list.
Throws A description of the exception. See ChatError. ~end
~chinese 将指定用户移除黑名单。
Param userId
要在黑名单中移除的用户 ID。
Throws 如果有方法调用的异常会在这里抛出,可以看到具体错误原因。请参见 ChatError。 ~end
Implementation
Future<void> removeUserFromBlockList(String userId) async {
Map req = {'username': userId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.removeUserFromBlockList, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}