Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support the stable endpoint from MSC2946 #11329

Merged
merged 9 commits into from
Nov 29, 2021
8 changes: 2 additions & 6 deletions synapse/rest/client/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,14 +1140,10 @@ async def on_POST(
class RoomHierarchyRestServlet(RestServlet):
PATTERNS = [
re.compile(
"^/_matrix/client/unstable/org.matrix.msc2946"
"^/_matrix/client/(v1|unstable/org.matrix.msc2946)"
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved
"/rooms/(?P<room_id>[^/]*)/hierarchy$"
),
] + list(
client_patterns(
"/rooms/(?P<room_id>[^/]*)/hierarchy$", releases=("v1",), unstable=False
)
)
]

def __init__(self, hs: "HomeServer"):
super().__init__()
Expand Down