This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
incremental /sync may give incomplete results when rejoining a room #3305
Closed
Description
I rather hope this will get fixed when we make depth not be a thing, but:
- incremental /sync looks for rooms you have joined since your previous sync
- it does this by looking at your membership state in each room at your 'since' token (
synapse/synapse/handlers/sync.py
Line 1087 in 933bf2d
- however,
get_state_at
usesget_recent_events_for_room
which returns the event with the greatest depth, so if somebody has been playing silly buggers with the depth, you may end up looking at a point in the graph where you were a member, even though at the point of the 'since' token you were not.