-
Notifications
You must be signed in to change notification settings - Fork 38
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
Extension scoping doesn't correctly handle the case where only one field is provided #148
Comments
Thanks for the clarification.
edit: I've been told that it's not required: setting a value to |
Hmm. I have found a problem. I have a test where:
the latter is unfortunate. Enumerating the cases the client can want to send, for e.g. lists:
Suggestion: I think I'd probably change the API to be that you either
and say that |
Instead of treating
That's pretty common in the Rust SDK's usage, for what it's worth: we treat |
The proxy, and to my understanding the protocol broadly treats Instead, the MSC was updated again to interpret any array starting with |
matrix-org/matrix-spec-proposals@30e31c8 was my attempt to clarify the intended semantics of the extension scoping config.
The code as written today:
sliding-sync/sync3/extensions/extensions.go
Lines 99 to 127 in bca1b68
If you scope to⚠️ ignore those in your room subscriptions. It should process all rooms visible in
{"lists": ["a"]}
, the extension will only process rooms visible ina
anda
and all those in your room subscriptions.Similarly if you scope to⚠️ ignore those visible in your sliding windows. It should indead process that room and all those in your sliding windows.
{"rooms": ["!foo:example"]}
, the extension will only process that room and willcc @bnjbvr
The text was updated successfully, but these errors were encountered: