diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-25 14:22:01 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-02-25 14:22:01 +0000 |
commit | dd6151170b9f5ac5e0eedf4b018259d1fd89ce6c (patch) | |
tree | 8e3288532e53c5ed3f08497f80503256684e034b /synapse/handlers/room.py | |
parent | Merge pull request #6015 from matrix-org/erikj/ratelimit_admin_redaction (diff) | |
parent | Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976) (diff) | |
download | synapse-dd6151170b9f5ac5e0eedf4b018259d1fd89ce6c.tar.xz |
Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976)
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 6bfd9f1231..3e815d7d46 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -596,8 +596,8 @@ class RoomCreationHandler(BaseHandler): room_id = yield self._generate_room_id(creator_id=user_id, is_public=is_public) + directory_handler = self.hs.get_handlers().directory_handler if room_alias: - directory_handler = self.hs.get_handlers().directory_handler yield directory_handler.create_association( requester=requester, room_id=room_id, @@ -683,6 +683,7 @@ class RoomCreationHandler(BaseHandler): for invite_3pid in invite_3pid_list: id_server = invite_3pid["id_server"] + id_access_token = invite_3pid.get("id_access_token") # optional address = invite_3pid["address"] medium = invite_3pid["medium"] yield self.hs.get_room_member_handler().do_3pid_invite( @@ -694,6 +695,7 @@ class RoomCreationHandler(BaseHandler): requester, txn_id=None, new_room=True, + id_access_token=id_access_token, ) result = {"room_id": room_id} |