mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-10 09:32:40 -04:00
Remove unused room_alias
field from /createRoom
response (#15093)
* Change `create_room` return type * Don't return room alias from /createRoom * Update other callsites * Fix up mypy complaints It looks like new_room_user_id is None iff new_room_id is None. It's a shame we haven't expressed this in a way that mypy can understand. * Changelog
This commit is contained in:
parent
8219525b66
commit
647ff3ef65
10 changed files with 40 additions and 39 deletions
|
@ -160,11 +160,11 @@ class RoomCreateRestServlet(TransactionRestServlet):
|
|||
async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
|
||||
requester = await self.auth.get_user_by_req(request)
|
||||
|
||||
info, _ = await self._room_creation_handler.create_room(
|
||||
room_id, _, _ = await self._room_creation_handler.create_room(
|
||||
requester, self.get_room_config(request)
|
||||
)
|
||||
|
||||
return 200, info
|
||||
return 200, {"room_id": room_id}
|
||||
|
||||
def get_room_config(self, request: Request) -> JsonDict:
|
||||
user_supplied_config = parse_json_object_from_request(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue