Skip to content

What is the point of /keys/changes ? #2034

Open
@richvdh

Description

@richvdh

Link to problem area:

https://spec.matrix.org/v1.12/client-server-api/#tracking-the-device-list-for-a-user

Issue

The spec says:

Periodically, Alice’s client stores the next_batch field of the result from /sync in persistent storage. If Alice later restarts her client, it can obtain a list of the users who have updated their device list while it was offline by calling /keys/changes, passing the recorded next_batch field as the from parameter. If the client is tracking the device list of any of the users listed in the response, it marks them as outdated. It combines this list with those already flagged as outdated, and initiates a /keys/query request for all of them.

... but won't that return just the same information as calling /sync with the next_batch token (which we will presumably do anyway)?

I don't get it. Which is a particular shame, given I wrote it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions