Merge pull request #1108 from matrix-org/erikj/create_dm

Add is_direct param to /createRoom
This commit is contained in:
Erik Johnston 2016-09-12 16:57:16 +01:00 committed by GitHub
commit 1c9da43a95

View File

@ -196,6 +196,11 @@ class RoomCreationHandler(BaseHandler):
},
ratelimit=False)
content = {}
is_direct = config.get("is_direct", None)
if is_direct:
content["is_direct"] = is_direct
for invitee in invite_list:
yield room_member_handler.update_membership(
requester,
@ -203,6 +208,7 @@ class RoomCreationHandler(BaseHandler):
room_id,
"invite",
ratelimit=False,
content=content,
)
for invite_3pid in invite_3pid_list: