-
Notifications
You must be signed in to change notification settings - Fork 379
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
Spec lazy_load_members and include_redundant_members #1758
Conversation
Signed-off-by: Alexey Rusakov <[email protected]>
libQMatrixClient |
Ideally someone like @ara4n who knows what the implementation actually does would be best to review this. |
oh, awesome - thanks @KitsuneRal. will review |
It just occurred to me that we probably will need a separate section in the spec that explains how lazy-loading works from clients' standpoint (mostly reworded sections of https://docs.google.com/document/d/11yn-mAkYll10RJpN0mkYEVqraTbU3U4eQx9MNrzqX1U/edit#heading=h.q5mz9uiufb2g). This also covers MSC688 and MSC1337 though. I see 3 ways to do it:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally LGTM, though it seems we've lost a paragraph from https://github.com/matrix-org/matrix-doc/pull/1287/files#diff-0365f42e14699ef8c27554ce3860f18fR137 which seemed useful?
Yes we do, though now that we have this PR (and #1287...), let's get it landed. #1287 is a good demonstration of how PRs can get stuck for 6 months waiting for the last 10%. Also, as I note on #1337, that's still in proposal stage, so I certainly wouldn't advise rolling that in here right now. |
@richvdh, thanks for spotting, I will add the missing NB here shortly. So are you after option 1 or option 3 in your second comment? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
So, i only just got to review this (sorry for lag). Whilst it correctly describes the original intention of LL, it should probably be reworded slightly to reflect the current reality, which is that LL only kicks in for initial sync if enabled. Gappy incremental syncs currently do include membership changes which happened during the gap, otherwise a client who wished to track the full membership of the room (for tab-complete, typing notifs etc) would have to do a full /members sync after every incremental sync... which ends up being worse than non-LL behaviour. The 'correct' solution is to provide an incremental dialect of /members, but that doesn't exist yet. See element-hq/element-web#7211 (comment) for more details. Also, we need to be explicit that you see yourself in LL members (even if you're not speaking in the room). I guess these should go in a separate PR? |
Given that this is already merged, any amendment can only happen in a separate PR. Frankly, I consider the above-mentioned a feature rather than a problem. I agree it should be explicitly noted though; will come back with another PR soonish. |
This is an implementation of #1227 - that better (than #1287) matches the current Synapse implementation.