unblockMembers method

Future<void> unblockMembers(
  1. String groupId,
  2. List<String> members
)

~english Removes users from the group blocklist. Only the group owner can call this method.

Param groupId The group ID. Param members The list of users to be removed from the blocklist.

Returns None.

Throws Exception description, see EMError. ~end

~chinese 从群组黑名单中移除用户。 仅群主有权限调用。

Param groupId 群组 ID。 Param members 要从黑名单中移除的用户列表。

Return 无。

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

Implementation

Future<void> unblockMembers(
  String groupId,
  List<String> members,
) async {
  try {
    Map req = {'groupId': groupId, 'members': members};
    Map result = await Client.instance.groupManager
        .callNativeMethod(ChatMethodKeys.unblockMembers, req);
    EMError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}