Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[federation] Implement stream_id for users' device updates #493

Closed
matrixbot opened this issue Oct 30, 2024 · 2 comments
Closed

[federation] Implement stream_id for users' device updates #493

matrixbot opened this issue Oct 30, 2024 · 2 comments

Comments

@matrixbot
Copy link
Collaborator

This issue was originally created by @APwhitehat at matrix-org/dendrite#493.

After #498 we have basic get user_devices in place.
GET /_matrix/federation/v1/query/user_devices/{user_id}

Expected Response:

{
    "stream_id": string,
    "devices": []device
}

We still don't implement stream_id.
Figure out how to do this.

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @erikjohnston at matrix-org/dendrite#493 (comment).

The stream_id stuff is to allow servers to be subscribed to users' device updates. This works by servers sending any update to devices to other servers who have users which share a room with the device's user. This allows remote servers to get live updates about device changes (which is important for e2e) without constantly having to query the local server. This API basically allows remote servers to "resync", i.e. get the list of all the user's devices.

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @kegsay at matrix-org/dendrite#493 (comment).

We do this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant