SealdRecipientsWithRightsArray_Add method

void SealdRecipientsWithRightsArray_Add(
  1. Pointer<NativeSealdRecipientsWithRightsArray> array,
  2. Pointer<Utf8> sealdId,
  3. int readRight,
  4. int forwardRight,
  5. int revokeRight,
)

SealdRecipientsWithRightsArray_Add adds a recipient with its associated rights to the array. SealdRecipientsWithRightsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.

@param array The SealdRecipientsWithRightsArray to add the recipients-rights pair to. @param sealdId Internal Seald IDs. Returned for users with SealdSdk_getCurrentAccountInfo, for groups when creating them. @param readRight The right to read the message. @param forwardRight The right to forward the message to another user. @param revokeRight The right to revoke another user from a message, or to remove rights from them.

Implementation

void SealdRecipientsWithRightsArray_Add(
  ffi.Pointer<NativeSealdRecipientsWithRightsArray> array,
  ffi.Pointer<pkg_ffi.Utf8> sealdId,
  int readRight,
  int forwardRight,
  int revokeRight,
) {
  return _SealdRecipientsWithRightsArray_Add(
    array,
    sealdId,
    readRight,
    forwardRight,
    revokeRight,
  );
}