Skip to content

Commit

Permalink
Register sliding sync under a different path (#17331)
Browse files Browse the repository at this point in the history
As the API is slightly incompatible.
  • Loading branch information
erikjohnston authored Jun 19, 2024
1 parent c99203d commit 3239b74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/17331.misc
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion synapse/rest/client/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
4 changes: 3 additions & 1 deletion tests/rest/client/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,9 @@ def default_config(self) -> JsonDict:

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()

Expand Down

0 comments on commit 3239b74

Please sign in to comment.