-
- Downloads
Fix bug in `/sync` response for archived rooms (#16932)
This PR fixes a very, very niche edge-case, but I've got some more work coming which will otherwise make the problem worse. The bug happens when the syncing user leaves a room, and has a sync filter which includes "left" rooms, but sets the timeline limit to 0. In that case, the state returned in the `state` section is calculated incorrectly. The fix is to pass a token corresponding to the point that the user leaves the room through to `compute_state_delta`.
Showing
- changelog.d/16932.bugfix 1 addition, 0 deletionschangelog.d/16932.bugfix
- synapse/handlers/sync.py 107 additions, 14 deletionssynapse/handlers/sync.py
- tests/handlers/test_sync.py 195 additions, 13 deletionstests/handlers/test_sync.py
- tests/rest/client/utils.py 11 additions, 7 deletionstests/rest/client/utils.py
Loading
Please register or sign in to comment