revokeRecipientsAsync method

Future<SealdRevokeResult> revokeRecipientsAsync({
  1. List<String>? recipientsIds,
  2. List<String>? proxySessionsIds,
})

Revokes some recipients or proxy sessions from this session. If you want to revoke all recipients, see SealdEncryptionSession.revokeAll instead. If you want to revoke all recipients besides yourself, see SealdEncryptionSession.revokeOthers.

recipientsIds - The Seald IDs of users to revoke from this session. proxySessionsIds - The IDs of proxy sessions to revoke from this session. Returns a SealdRevokeResult.

Implementation

Future<SealdRevokeResult> revokeRecipientsAsync(
    {List<String>? recipientsIds, List<String>? proxySessionsIds}) {
  final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
  return compute(
      (Map<String, dynamic> args) => SealdEncryptionSession._(tPtr)
          .revokeRecipients(
              recipientsIds: args["recipientsIds"],
              proxySessionsIds: args["proxySessionsIds"]),
      {"recipientsIds": recipientsIds, "proxySessionsIds": proxySessionsIds});
}