This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Make outgoing device list tracking work after we partial-join #13891
Description
To fix "/keys/query
requests on a remote homeserver must not return stale data.":
- Store the current device list stream ID when we start a partial join
- When we transition from partial to fully joined, send all device list updates in
device_list_changes_in_room
since we last joined the room (by referring to the recorded stream ID) for the room to all servers that are either:- are in the room; or
- have had a membership change between the state at the initial join and the new current state.
Originally posted by @erikjohnston in #12993 (comment)