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

Don't reset the timeline when we join a room after peeking #91

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Feb 29, 2016

If we've already got all the events in a limited sync, there is no need to reset
the timeline.

This fixes a bug where, if you peek into a world-readable room, and then join it, we get stuck paginating in a tight loop until an event arrives (or you change room).

I think this is probably also responsible for a number of other bugs, like element-hq/element-web#1045 and element-hq/element-web#943, though I haven't yet reproduced those fully.

If we've already got all the events in a limited sync, there is no need to reset
the timeline.
@dbkr
Copy link
Member

dbkr commented Feb 29, 2016

OK, think I've got my head around this! lgtm.

@dbkr dbkr assigned richvdh and unassigned dbkr Feb 29, 2016
richvdh added a commit that referenced this pull request Mar 1, 2016
…_join

Don't reset the timeline when we join a room after peeking
@richvdh richvdh merged commit e287e75 into develop Mar 1, 2016
@richvdh richvdh deleted the rav/fix_stuck_pagination_after_join branch March 1, 2016 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants