Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

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

Closed
APwhitehat opened this issue Jun 11, 2018 · 2 comments
Closed

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

APwhitehat opened this issue Jun 11, 2018 · 2 comments

Comments

@APwhitehat
Copy link
Contributor

APwhitehat commented Jun 11, 2018

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.

@APwhitehat APwhitehat changed the title [federation] [federation] Implement user devices api Jun 11, 2018
@erikjohnston
Copy link
Member

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.

@APwhitehat APwhitehat changed the title [federation] Implement user devices api [federation] Implement stream_id for users' device updates Jun 26, 2018
@kegsay
Copy link
Member

kegsay commented Aug 6, 2020

We do this now.

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

No branches or pull requests

4 participants