ReceivedMessage

class ReceivedMessage(val sender: DeviceAddress, val id: LogicalMessageId, val sequence: Long, val receivedAt: Instant, val plaintext: ByteArray)

A received application message that waits for the application's decision (docs/application-delivery.md, docs/message-discard.md). It is delivered again, by SecureMessageClient.decrypt and SecureMessageClient.pendingReceivedMessages, until the application finalizes it with SecureMessageClient.commitReceivedMessage or SecureMessageClient.discardReceivedMessage.

(sender, id) identifies the message; applications should use it as the idempotency key of their own processing. plaintext is a copy.

Constructors

Link copied to clipboard
constructor(sender: DeviceAddress, id: LogicalMessageId, sequence: Long, receivedAt: Instant, plaintext: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

when this device first accepted the message (local clock).

Link copied to clipboard
Link copied to clipboard

local order in which this device accepted pending messages. Stable across restarts; not an order across senders or a sender's send order.