diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-02-19 10:40:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 10:40:27 +0000 |
commit | 880aaac1d82695b1a89f22f1f86c7f295ca205e0 (patch) | |
tree | c6792fce676c5773434d9446a911e06e02f829e1 /synapse/rest/client/v1 | |
parent | Tiny optimisation for _get_handler_for_request (#6950) (diff) | |
download | synapse-880aaac1d82695b1a89f22f1f86c7f295ca205e0.tar.xz |
Move MSC2432 stuff onto unstable prefix (#6948)
it's not in the spec yet, so needs to be unstable. Also add a feature flag for it. Also add a test for admin users.
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r-- | synapse/rest/client/v1/room.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 143dc738c6..64f51406fb 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -16,6 +16,7 @@ """ This module contains REST servlets to do with rooms: /rooms/<paths> """ import logging +import re from typing import List, Optional from six.moves.urllib import parse as urlparse @@ -848,7 +849,12 @@ class RoomTypingRestServlet(RestServlet): class RoomAliasListServlet(RestServlet): - PATTERNS = client_patterns("/rooms/(?P<room_id>[^/]*)/aliases", unstable=False) + PATTERNS = [ + re.compile( + r"^/_matrix/client/unstable/org\.matrix\.msc2432" + r"/rooms/(?P<room_id>[^/]*)/aliases" + ), + ] def __init__(self, hs: "synapse.server.HomeServer"): super().__init__() |