matrix-js-sdk
    Preparing search index...

    The per-user storage of receipts, keyed by receipt type.

    For each receipt type we hold an optional real and synthetic receipt. The invariant is: synthetic is only set if it's strictly later than real.

    Index

    Constructors

    Methods

    • Return the effective (real or synthetic, whichever is later) receipt for the given receipt type.

      Parameters

      • receiptType: string
      • ignoreSynthesized: boolean = false

      Returns ReceiptInfo | undefined

    • Return either the real or the synthetic receipt for the given receipt type.

      Parameters

      • receiptType: string
      • synthetic: boolean

      Returns ReceiptInfo | undefined

    • Set the real or synthetic receipt for the given receipt type. Preserves the invariant that synthetic only exists if it's strictly later than real.

      Parameters

      Returns void