removeMembersFromChatRoomAllowList method

Future<void> removeMembersFromChatRoomAllowList(
  1. String roomId,
  2. List<String> members
)

将成员从白名单移除。

仅聊天室所有者和管理员可调用此方法。

Param roomId 聊天室 ID。

Param members 移除白名单的用户列表。

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError

Implementation

Future<void> removeMembersFromChatRoomAllowList(
  String roomId,
  List<String> members,
) async {
  Map req = {
    "roomId": roomId,
    "members": members,
  };
  Map result = await _channel.invokeMethod(
    ChatMethodKeys.removeMembersFromChatRoomWhiteList,
    req,
  );
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}