mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:45:01 -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
|
@ -50,12 +50,14 @@ class ReceiptTestCase(HomeserverTestCase):
|
|||
self.otherRequester = create_requester(self.otherUser)
|
||||
|
||||
# Create a test room
|
||||
info, _ = self.get_success(self.room_creator.create_room(self.ourRequester, {}))
|
||||
self.room_id1 = info["room_id"]
|
||||
self.room_id1, _, _ = self.get_success(
|
||||
self.room_creator.create_room(self.ourRequester, {})
|
||||
)
|
||||
|
||||
# Create a second test room
|
||||
info, _ = self.get_success(self.room_creator.create_room(self.ourRequester, {}))
|
||||
self.room_id2 = info["room_id"]
|
||||
self.room_id2, _, _ = self.get_success(
|
||||
self.room_creator.create_room(self.ourRequester, {})
|
||||
)
|
||||
|
||||
# Join the second user to the first room
|
||||
memberEvent, memberEventContext = self.get_success(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue