The latest threaded receipts we have for a room.

Constructors

Methods

Constructors

Methods

  • Find the latest threaded receipt for the supplied user in the supplied thread.

    Parameters

    • threadId: string
    • userId: string

    Returns undefined | ReceiptInfo

    the found receipt info or undefined if we don't have one.

  • Add the supplied receipt to our structure, if it is not earlier than one we already hold for this user in this thread.

    Parameters

    • threadId: string
    • eventId: string
    • receiptType: string
    • userId: string
    • ts: number
    • synthetic: boolean

    Returns void