Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants