BufferedDecryptedMessage

public struct BufferedDecryptedMessage
extension BufferedDecryptedMessage: Sendable

A decrypted message that was buffered due to out-of-order delivery by the distribution service.

These are returned in the buffered_messages field of a DecryptedMessage when a commit is processed. They represent messages for the new epoch that arrived before the commit that created it.

  • Decrypted plaintext

    Declaration

    Swift

    public var message: Data?
  • False if processing this message caused the client to be removed from the group, i.e. due to a Remove commit.

    Declaration

    Swift

    public var isActive: Bool
  • Commit delay in seconds.

    When set, clients must delay this long before processing a commit. This reduces load on the backend, which otherwise would receive epoch change notifications from all clients simultaneously.

    Declaration

    Swift

    public var commitDelay: UInt64?
  • ClientId of the sender of the message being decrypted. Only present for application messages.

    Declaration

    Swift

    public var senderClientId: ClientId?
  • Identity claims present in the sender credential.

    Declaration

    Swift

    public var identity: WireIdentity
  • Undocumented

    Declaration

    Swift

    public init(
        /**
         * Decrypted plaintext
         */message: Data?, 
        /**
         * False if processing this message caused the client to be removed from the group, i.e. due to a Remove commit.
         */isActive: Bool, 
        /**
         * Commit delay in seconds.
         *
         * When set, clients must delay this long before processing a commit.
         * This reduces load on the backend, which otherwise would receive epoch change notifications from all clients
         * simultaneously.
         */commitDelay: UInt64?, 
        /**
         * `ClientId` of the sender of the message being decrypted. Only present for application messages.
         */senderClientId: ClientId?, 
        /**
         * Identity claims present in the sender credential.
         */identity: WireIdentity)