Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Exclude old state events from sync when consumed from roomserver #1548

Merged
merged 7 commits into from
Oct 22, 2020

Conversation

neilalexander
Copy link
Contributor

When consuming old room events from the roomserver, the sync API was not excluding them from sync, which I think is responsible for some older events appearing incorrectly in the timeline. This should therefore fix #1547.

@neilalexander
Copy link
Contributor Author

As far as I can tell, the sytests that this has caused to fail probably shouldn't have been passing before.

The sync API doesn't currently have the ability to insert events into the history of the timeline - they can only get added as if they had just happened - and I get the feeling this has caused us to pass a couple of tests by fluke.

@Half-Shot
Copy link
Contributor

The sync API doesn't currently have the ability to insert events into the history of the timeline - they can only get added as if they had just happened

Concerns from the peanut gallery: If I send dendrite an extremely delayed transaction from my HS, containing events from ages ago, will the sync API treat those as new?

Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds plausible and a reasonable compromise for now!

@neilalexander neilalexander changed the title Exclude old room events from sync when consumed from roomserver Exclude old state events from sync when consumed from roomserver Oct 22, 2020
@neilalexander neilalexander merged commit f32320a into master Oct 22, 2020
@neilalexander neilalexander deleted the neilalexander/excludesync branch October 22, 2020 10:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants