mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
r0.6.1 support: /rooms/:roomId/aliases endpoint (#9224)
[MSC2432](https://github.com/matrix-org/matrix-doc/pull/2432) added this endpoint originally but it has since been included in the spec for nearly a year. This is progress towards https://github.com/matrix-org/synapse/issues/8334
This commit is contained in:
parent
d7a646abca
commit
5325f0308c
1
changelog.d/9224.feature
Normal file
1
changelog.d/9224.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add new endpoint `/_matrix/client/r0/rooms/{roomId}/aliases` from Client-Server API r0.6.1 (previously [MSC2432](https://github.com/matrix-org/matrix-doc/pull/2432)).
|
@ -910,7 +910,7 @@ class RoomAliasListServlet(RestServlet):
|
|||||||
r"^/_matrix/client/unstable/org\.matrix\.msc2432"
|
r"^/_matrix/client/unstable/org\.matrix\.msc2432"
|
||||||
r"/rooms/(?P<room_id>[^/]*)/aliases"
|
r"/rooms/(?P<room_id>[^/]*)/aliases"
|
||||||
),
|
),
|
||||||
]
|
] + list(client_patterns("/rooms/(?P<room_id>[^/]*)/aliases$", unstable=False))
|
||||||
|
|
||||||
def __init__(self, hs: "HomeServer"):
|
def __init__(self, hs: "HomeServer"):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -1880,8 +1880,7 @@ class RoomAliasListTestCase(unittest.HomeserverTestCase):
|
|||||||
"""Calls the endpoint under test. returns the json response object."""
|
"""Calls the endpoint under test. returns the json response object."""
|
||||||
channel = self.make_request(
|
channel = self.make_request(
|
||||||
"GET",
|
"GET",
|
||||||
"/_matrix/client/unstable/org.matrix.msc2432/rooms/%s/aliases"
|
"/_matrix/client/r0/rooms/%s/aliases" % (self.room_id,),
|
||||||
% (self.room_id,),
|
|
||||||
access_token=access_token,
|
access_token=access_token,
|
||||||
)
|
)
|
||||||
self.assertEqual(channel.code, expected_code, channel.result)
|
self.assertEqual(channel.code, expected_code, channel.result)
|
||||||
|
Loading…
Reference in New Issue
Block a user