This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Synapse sends unnecessary device list change entries #6162
Labels
A-Device-List-Tracking
Telling clients about other devices. Often related to E2EE.
A-Lazy-Loading
Issues relating to `lazy_load_members` in `/sync`
A-Performance
Performance, both client-facing and admin-facing
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
z-bug
(Deprecated Label)
z-p2
(Deprecated Label)
With the lazy loading sync options enabled, synapse includes the current state events it thinks the client will need in order to render the events in the timeline section. The device list sync computation code includes these state events when working out what users have joined a room, so every time this happens, it generates a device change entry for that user too.
This will also presumably have happened when a user changed their profile information, so perhaps the most sensible fix here is for the sync code to look at the prev content for join events (it already looks at prev_content for leave events: https://github.com/matrix-org/synapse/blob/master/synapse/handlers/sync.py#L1382 ).
The text was updated successfully, but these errors were encountered: