diff options
author | Erik Johnston <erikj@element.io> | 2024-06-19 17:18:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 16:18:45 +0000 |
commit | 3239b7459c88d02be33975addcddfc39126575e7 (patch) | |
tree | 4b8ae40976b66a6ec22e46ec19925ac268fe5313 | |
parent | register-new-matrix-user: add a flag to ignore already existing users (#17304) (diff) | |
download | synapse-3239b7459c88d02be33975addcddfc39126575e7.tar.xz |
Register sliding sync under a different path (#17331)
As the API is slightly incompatible.
-rw-r--r-- | changelog.d/17331.misc | 1 | ||||
-rw-r--r-- | synapse/rest/client/sync.py | 2 | ||||
-rw-r--r-- | tests/rest/client/test_sync.py | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/changelog.d/17331.misc b/changelog.d/17331.misc new file mode 100644 index 0000000000..79d3f33996 --- /dev/null +++ b/changelog.d/17331.misc @@ -0,0 +1 @@ +Change path of the experimental [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575) Sliding Sync implementation to `/org.matrix.simplified_msc3575/sync` since our simplified API is slightly incompatible with what's in the current MSC. diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index 1b0ac20d94..b5ab0d8534 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -864,7 +864,7 @@ class SlidingSyncRestServlet(RestServlet): """ PATTERNS = client_patterns( - "/org.matrix.msc3575/sync$", releases=[], v1=False, unstable=True + "/org.matrix.simplified_msc3575/sync$", releases=[], v1=False, unstable=True ) def __init__(self, hs: "HomeServer"): diff --git a/tests/rest/client/test_sync.py b/tests/rest/client/test_sync.py index 2b06767b8a..5195659ec2 100644 --- a/tests/rest/client/test_sync.py +++ b/tests/rest/client/test_sync.py @@ -1228,7 +1228,9 @@ class SlidingSyncTestCase(unittest.HomeserverTestCase): def prepare(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None: self.store = hs.get_datastores().main - self.sync_endpoint = "/_matrix/client/unstable/org.matrix.msc3575/sync" + self.sync_endpoint = ( + "/_matrix/client/unstable/org.matrix.simplified_msc3575/sync" + ) self.store = hs.get_datastores().main self.event_sources = hs.get_event_sources() |