addRecipientsAsync method

Future<Map<String, SealdActionStatus>> addRecipientsAsync(
  1. List<SealdRecipientWithRights> recipients
)

Adds new recipients to this session. These recipients will be able to read all encrypted messages of this session.

recipients - The Seald IDs of users to add to this session. Returns a Map which gives the result of the adding as a SealdActionStatus for each of the added recipient's devices. The keys of the Map correspond to the deviceIds of the recipients you are trying to add.

Implementation

Future<Map<String, SealdActionStatus>> addRecipientsAsync(
    List<SealdRecipientWithRights> recipients) {
  final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
  return compute(
      (List<SealdRecipientWithRights> recipients) =>
          SealdEncryptionSession._(tPtr).addRecipients(recipients),
      recipients);
}