Class OutgoingRoomKeyRequestManager

Hierarchy

  • OutgoingRoomKeyRequestManager

Constructors

Properties

baseApis: MatrixClient
clientRunning: boolean = false
cryptoStore: CryptoStore
deviceId: string
sendOutgoingRoomKeyRequestsRunning: boolean = false
sendOutgoingRoomKeyRequestsTimer?: Timeout

Methods

  • Find anything in sent state, and kick it around the loop again. This is intended for situations where something substantial has changed, and we don't really expect the other end to even care about the cancellation. For example, after initialization or self-verification.

    Returns

    An array of queueRoomKeyRequest outputs.

    Returns Promise<void[]>

  • Queue up a room key request, if we haven't already queued or sent one.

    The requestBody is compared (with a deep-equality check) against previous queued or sent requests and if it matches, no change is made. Otherwise, a request is added to the pending list, and a job is started in the background to send it.

    Returns

    resolves when the request has been added to the pending list (or we have established that a similar request already exists)

    Parameters

    Returns Promise<void>

Generated using TypeDoc