mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 16:02:19 -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
|
@ -476,7 +476,7 @@ class RegistrationHandler:
|
|||
# create room expects the localpart of the room alias
|
||||
config["room_alias_name"] = room_alias.localpart
|
||||
|
||||
info, _ = await room_creation_handler.create_room(
|
||||
room_id, _, _ = await room_creation_handler.create_room(
|
||||
fake_requester,
|
||||
config=config,
|
||||
ratelimit=False,
|
||||
|
@ -490,7 +490,7 @@ class RegistrationHandler:
|
|||
user_id, authenticated_entity=self._server_name
|
||||
),
|
||||
target=UserID.from_string(user_id),
|
||||
room_id=info["room_id"],
|
||||
room_id=room_id,
|
||||
# Since it was just created, there are no remote hosts.
|
||||
remote_room_hosts=[],
|
||||
action="join",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue