encryptTargetedMessage
abstract suspend fun encryptTargetedMessage(groupId: MLSGroupId, recipient: CryptoQualifiedClientId, message: PlainMessage, transient: Boolean): ApplicationMessage
Encrypt a targeted message for a single member of a group.
Targeted messages have weaker security guarantees than application messages.
Return
TLS-serialized targeted message
Parameters
groupId
MLS group ID provided by BE
recipient
the member client the message is addressed to
message
plain text message
transient
true if the backend shouldn't persist the message