diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-11-28 19:26:13 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-11-28 19:26:26 +0000 |
commit | 708cef88cfbf8dd6df44d2da4ab4dbc7eb584f74 (patch) | |
tree | 664a99808b8c6bb1718bb05464944b69e4c3972c /tests/http | |
parent | Remove local threepids on account deactivation (#6426) (diff) | |
download | synapse-708cef88cfbf8dd6df44d2da4ab4dbc7eb584f74.tar.xz |
Discard retention policies when retrieving state
Purge jobs don't delete the latest event in a room in order to keep the forward extremity and not break the room. On the other hand, get_state_events, when given an at_token argument calls filter_events_for_client to know if the user can see the event that matches that (sync) token. That function uses the retention policies of the events it's given to filter out those that are too old from a client's view. Some clients, such as Riot, when loading a room, request the list of members for the latest sync token it knows about, and get confused to the point of refusing to send any message if the server tells it that it can't get that information. This can happen very easily with the message retention feature turned on and a room with low activity so that the last event sent becomes too old according to the room's retention policy. An easy and clean fix for that issue is to discard the room's retention policies when retrieving state.
Diffstat (limited to 'tests/http')
0 files changed, 0 insertions, 0 deletions