Class DeviceListUpdateSerialiser

Serialises updates to device lists

Ensures that results from /keys/query are not overwritten if a second call completes before an earlier one.

It currently does this by ensuring only one call to /keys/query happens at a time (and queuing other requests up).

Hierarchy

  • DeviceListUpdateSerialiser

Constructors

Properties

baseApis: MatrixClient
deviceList: DeviceList
downloadInProgress: boolean = false
keyDownloadsQueuedByUser: Record<string, boolean> = {}
olmDevice: OlmDevice
queuedQueryDeferred?: IDeferred<void>
syncToken?: string

Methods

  • Make a key query request for the given users

    Returns

    resolves when all the users listed have been updated. rejects if there was a problem updating any of the users.

    Parameters

    • users: string[]

      list of user ids

    • syncToken: string

      sync token to pass in the query request, to help the HS give the most recent results

    Returns Promise<void>

Generated using TypeDoc