element-hq / element-hq/synapse

Lazy loading: LL members events should not be sent in both state and in the timeline

Open
#4,237 0 comments 0 reactions 0 assignees View on GitHub
A-Lazy-Loading T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#4237](https://github.com/matrix-org/synapse/issues/4237).

---

Without LL, there is an optimisation (it has been here for years) where the HS does not send state events in the `state` field of a /sync response if they appear also in the provided `timeline`.

LL does not follow this optimisation. If there is a change on a member the matrix client has not received yet, the homeserver will send this new event both in `state` and in `timeline`.

This is a small regression on performance but that can also break some logic on clients, like at least on Riot-Android.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.