Skip to content
Snippets Groups Projects
Commit d18fc977 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

Merge branch 'develop' of git+ssh://github.com/matrix-org/synapse into develop

parents b80d1925 cf45e57d
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,7 @@ setup( ...@@ -54,6 +54,7 @@ setup(
"mock" "mock"
], ],
include_package_data=True, include_package_data=True,
zip_safe=False,
long_description=read("README.rst"), long_description=read("README.rst"),
entry_points=""" entry_points="""
[console_scripts] [console_scripts]
......
...@@ -111,15 +111,6 @@ class RoomCreationHandler(BaseHandler): ...@@ -111,15 +111,6 @@ class RoomCreationHandler(BaseHandler):
user, room_id, is_public=is_public user, room_id, is_public=is_public
) )
if room_alias:
directory_handler = self.hs.get_handlers().directory_handler
yield directory_handler.create_association(
user_id=user_id,
room_id=room_id,
room_alias=room_alias,
servers=[self.hs.hostname],
)
@defer.inlineCallbacks @defer.inlineCallbacks
def handle_event(event): def handle_event(event):
snapshot = yield self.store.snapshot_room(event) snapshot = yield self.store.snapshot_room(event)
...@@ -184,9 +175,18 @@ class RoomCreationHandler(BaseHandler): ...@@ -184,9 +175,18 @@ class RoomCreationHandler(BaseHandler):
join_event, join_event,
do_auth=False do_auth=False
) )
result = {"room_id": room_id} result = {"room_id": room_id}
if room_alias: if room_alias:
result["room_alias"] = room_alias.to_string() result["room_alias"] = room_alias.to_string()
directory_handler = self.hs.get_handlers().directory_handler
yield directory_handler.create_association(
user_id=user_id,
room_id=room_id,
room_alias=room_alias,
servers=[self.hs.hostname],
)
defer.returnValue(result) defer.returnValue(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment