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

Lazy load room members - Part I #2072

Merged
merged 19 commits into from
Jul 26, 2018

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Jul 18, 2018

  • prototype lazy loading by calling /joined_members
  • detecting DMs should not assume there are member state events
  • sentinels should take lazily loaded members into account
  • avoid assuming there are member state events elsewhere
  • add feature flag

requires matrix-org/matrix-js-sdk#667

@bwindels bwindels changed the base branch from master to develop July 18, 2018 12:24
@bwindels bwindels requested review from dbkr, ara4n and t3chguy July 18, 2018 13:11
@bwindels bwindels removed the notready label Jul 18, 2018
@bwindels
Copy link
Contributor Author

Tests seem to fail for reasons unrelated to changes in this PR, or?

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

How will this behave with turning the feature flag on & off? Presumably when you turn it on, nothing will happen until you refresh, and even then not much will happen until you clear cache & reload?

How will it behave if you turn the feature flag off again? Do we need to force a new initial sync?

@bwindels bwindels changed the title Lazy load room members Lazy load room members - Part I Jul 25, 2018
@bwindels bwindels removed the notready label Jul 25, 2018
@bwindels bwindels changed the base branch from develop to bwindels/feature_lazyloading July 25, 2018 15:19
@bwindels
Copy link
Contributor Author

@dbkr Good point about the switching behaviour. As discussed, I'll address it in a subsequent PR.
Otherwise, this is ready for another look.

@bwindels
Copy link
Contributor Author

Added the switching behaviour as a work item in the parent issue (element-hq/element-web#6611 (comment))

@bwindels bwindels merged commit 0dd8602 into bwindels/feature_lazyloading Jul 26, 2018
@bwindels bwindels deleted the bwindels/lazy_load_members branch July 26, 2018 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants