-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
MSC3575 (Sliding Sync) add well-known proxy support #12307
MSC3575 (Sliding Sync) add well-known proxy support #12307
Conversation
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 seems like it wouldn't work if the value in the well-known was to be updated, as it would only ever be fetched when you enable Sliding Sync and you would not be able to update it AFAICT. This seems like a problem
Yes. Perhaps adding a setting that it's a proxy and needs to get the client well-known on launch? |
Yeah this would be a better option, happy for the proxy & "native" support to be removed in favour of the well-known check |
f481503
to
807c44d
Compare
So should I do away with the dialog altogether, allowing it to be enabled from labs iff I guess I could then add two settings at device level, ETA: Perhaps just set whether or not sliding sync has been enabled, then on open (if there isn't already a proxy url set) have a fail-through from "native" support on the unstable endpoint to a well-known check for the proxy? 🤔 I don't really know how all this stuff is handled in the views and dialogs... ETA2: Thanks to feedback in the relevant matrix #, I'll:
Falling back in this order means that people with "native" support provided by their homeserver can still choose to use a proxy url... |
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
Signed-off-by: Ed Geraghty <ed@geraghty.family>
…trix-react-sdk into edg/msc3575-native-support
…trix-react-sdk into edg/msc3575-native-support
🎉 |
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 otherwise, thanks for persevering!!
Needs sign-off as per https://github.com/element-hq/element-web/blob/develop/CONTRIBUTING.md#sign-off |
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
await client.http.authedRequest<void>(Method.Post, "/sync", undefined, undefined, { | ||
localTimeoutMs: 10 * 1000, // 10s | ||
prefix: "/_matrix/client/unstable/org.matrix.msc3575", | ||
}); |
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 is unsafe. It will cause the Sliding Sync proxy to start polling with our access token, which means that the SS proxy will receive our to-device messages, causing decryption errors.
Adds MSC3575 (Sliding Sync) proxy support from well-known. Removes the ability for adding custom sliding sync servers through Labs.
Signed-off-by: Ed Geraghty ed@geraghty.family