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:
David Robertson 2023-02-22 11:07:28 +00:00 committed by GitHub
parent 8219525b66
commit 647ff3ef65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 40 additions and 39 deletions

View file

@ -33,8 +33,7 @@ class ExtremStatisticsTestCase(HomeserverTestCase):
events = [(3, 2), (6, 2), (4, 6)]
for event_count, extrems in events:
info, _ = self.get_success(room_creator.create_room(requester, {}))
room_id = info["room_id"]
room_id, _, _ = self.get_success(room_creator.create_room(requester, {}))
last_event = None