Skip to content
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

Open
dbkr opened this issue Oct 3, 2019 · 2 comments
Open

Synapse sends unnecessary device list change entries #6162

dbkr opened this issue Oct 3, 2019 · 2 comments
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)

Comments

@dbkr
Copy link
Member

dbkr commented Oct 3, 2019

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 ).

@dbkr dbkr added the z-bug (Deprecated Label) label Oct 3, 2019
@neilisfragile neilisfragile added the z-p2 (Deprecated Label) label Oct 8, 2019
@neilisfragile neilisfragile added the A-Performance Performance, both client-facing and admin-facing label Oct 31, 2019
@ara4n
Copy link
Member

ara4n commented Nov 22, 2019

See also #3829

@erikjohnston erikjohnston self-assigned this Jan 16, 2020
@richvdh richvdh added the A-Device-List-Tracking Telling clients about other devices. Often related to E2EE. label Feb 5, 2020
@neilisfragile neilisfragile added the z-uisi (Deprecated Label) label Feb 5, 2020
@richvdh richvdh removed the z-uisi (Deprecated Label) label Feb 20, 2020
@ara4n
Copy link
Member

ara4n commented May 18, 2020

See also #7524. We shouldn't even be sending device list updates for users who you're not encrypting with.

@erikjohnston erikjohnston removed their assignment Jun 1, 2020
@richvdh richvdh added T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. A-Lazy-Loading Issues relating to `lazy_load_members` in `/sync` labels Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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)
Projects
None yet
Development

No branches or pull requests

5 participants