SealdEncryptionSession_AddRecipients method
int
SealdEncryptionSession_AddRecipients(
- Pointer<
NativeSealdEncryptionSession> es, - Pointer<
NativeSealdRecipientsWithRightsArray> recipients, - Pointer<
Pointer< result,NativeSealdActionStatusArray> > - Pointer<
Pointer< error,NativeSealdError> >
Add new recipients to this session. These recipients will be able to read all encrypted messages of this session.
To add a user as recipient, the SDK need to add every device associated with the user.
The returned SealdActionStatusArray instance includes a SealdActionStatus for every DEVICES that needs to be added.
The id field in each SealdActionStatus correspond to the deviceIds of those devices
@param es The SealdEncryptionSession instance.
@param recipients The Seald IDs of users to add to this session.
@param result A pointer to which to write the response.
@param error A pointer to a SealdError* where details will be stored in case of error.
@return Error code: -1 if an error happened, 0 for success.
Implementation
int SealdEncryptionSession_AddRecipients(
ffi.Pointer<NativeSealdEncryptionSession> es,
ffi.Pointer<NativeSealdRecipientsWithRightsArray> recipients,
ffi.Pointer<ffi.Pointer<NativeSealdActionStatusArray>> result,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdEncryptionSession_AddRecipients(
es,
recipients,
result,
error,
);
}