From f6122ff0a2d8e29d56c066b272fe98efe0dc85ee Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 21 May 2024 09:54:31 -0500 Subject: [PATCH] Use `client_patterns()` for endpoint URL See https://github.com/element-hq/synapse/pull/17167#discussion_r1608170900 --- synapse/rest/client/sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py index d2b76467c2..7604be46fc 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py @@ -612,7 +612,9 @@ class SlidingSyncE2eeRestServlet(RestServlet): } """ - PATTERNS = (re.compile("^/_matrix/client/unstable/org.matrix.msc3575/sync/e2ee$"),) + PATTERNS = client_patterns( + "/org.matrix.msc3575/sync/e2ee$", releases=[], v1=False, unstable=True + ) def __init__(self, hs: "HomeServer"): super().__init__()