unBlockChatRoomMembers method
~english Removes the specified members from the block list of the chat room.
Only the chat room owner or admin can call this method.
Param roomId
The chat room ID.
Param members
The list of members to be removed from the block list.
Throws A description of the exception. See ChatError. ~end
~chinese 从聊天室黑名单中移除成员。
仅聊天室所有者和管理员可调用此方法。
Param roomId
聊天室 ID。
Param members
要移除黑名单的成员列表。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError。 ~end
Implementation
Future<void> unBlockChatRoomMembers(
String roomId,
List<String> members,
) async {
Map req = {"roomId": roomId, "members": members};
Map result =
await _channel.invokeMethod(ChatMethodKeys.unBlockChatRoomMembers, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}