addProxySessionAsync method
Add a proxy session as a recipient of this session. Any recipient of the proxy session will also be able to retrieve this session. The current user has to be a direct recipient of the proxy session.
proxySessionId
- The ID of the session to add as proxy.
rights
- The rights to assign to this proxy.
Implementation
Future<void> addProxySessionAsync(String proxySessionId,
[SealdRecipientRights? rights]) {
final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
return compute(
(Map<String, dynamic> args) => SealdEncryptionSession._(tPtr)
.addProxySession(args["proxySessionId"], args["rights"]),
{"proxySessionId": proxySessionId, "rights": rights});
}