Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1108 from matrix-org/erikj/create_dm
Browse files Browse the repository at this point in the history
Add is_direct param to /createRoom
  • Loading branch information
erikjohnston authored Sep 12, 2016
2 parents 502c901 + 48a5a75 commit 1c9da43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,19 @@ def create_room(self, requester, config):
},
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,
UserID.from_string(invitee),
room_id,
"invite",
ratelimit=False,
content=content,
)

for invite_3pid in invite_3pid_list:
Expand Down

0 comments on commit 1c9da43

Please sign in to comment.