sendEncryptedMessageRequest(_:)
Sends an encrypted message to a specified destination.
Declaration
final func sendEncryptedMessageRequest(_ request: RCSService.SendEncryptedMessageRequest) async throws -> RCSService.SendEncryptedMessageRequest.ResultDiscussion
Your app may persist the returned RCSMessage.SecureSendReceipt instance to retry sending the message in the event that the recipient device fails to decrypt the original message.
To retry a request, set the secureSendReceipt property of the request, after receiving an RCSMessage.DispositionNotification message whose disposition is RCSMessage.Disposition.deliveryFailedDueToDecryptionFailure.