removeGroupMembersAsync method

Future<void> removeGroupMembersAsync(
  1. String groupId, {
  2. required List<String> membersToRemove,
  3. SealdGeneratedPrivateKeys? privateKeys,
})

Removes members from the group. Can only be done by a group administrator. You should call renewGroupKey after this.

groupId - The group from which to remove members. membersToRemove - The Seald IDs of the members to remove from the group. privateKeys - Optional. Pre-generated private keys, returned by a call to SealdSdk.generatePrivateKeysAsync.

Implementation

Future<void> removeGroupMembersAsync(String groupId,
    {required List<String> membersToRemove,
    SealdGeneratedPrivateKeys? privateKeys}) {
  return compute(
      (Map<String, dynamic> args) => removeGroupMembers(args["groupId"],
          membersToRemove: args["membersToRemove"],
          privateKeys: args["privateKeys"]),
      {
        "groupId": groupId,
        "membersToRemove": membersToRemove,
        "privateKeys": privateKeys
      });
}