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

Commit 6b99a66

Browse files
Remove unspecced DELETE endpoint that modifies room visibility (#13123)
1 parent 1017f09 commit 6b99a66

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

changelog.d/13123.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the unspecced `DELETE /directory/list/room/{roomId}` endpoint, which hid rooms from the [public room directory](https://spec.matrix.org/v1.3/client-server-api/#listing-rooms). Instead, `PUT` to the same URL with a visibility of `"private"`.

synapse/rest/client/directory.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,6 @@ async def on_PUT(
151151

152152
return 200, {}
153153

154-
async def on_DELETE(
155-
self, request: SynapseRequest, room_id: str
156-
) -> Tuple[int, JsonDict]:
157-
requester = await self.auth.get_user_by_req(request)
158-
159-
await self.directory_handler.edit_published_room_list(
160-
requester, room_id, "private"
161-
)
162-
163-
return 200, {}
164-
165154

166155
class ClientAppserviceDirectoryListServer(RestServlet):
167156
PATTERNS = client_patterns(

0 commit comments

Comments
 (0)