diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-12 16:34:20 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-12 16:34:20 +0100 |
commit | 48a5a7552d7f44cc7a8acf942b24782fb5ab34bb (patch) | |
tree | e6fabb5eed60e0a0f7fc5349e8462182e258a0f2 /synapse/handlers/room.py | |
parent | Merge pull request #1104 from matrix-org/markjh/direct_to_device_federation_sync (diff) | |
download | synapse-48a5a7552d7f44cc7a8acf942b24782fb5ab34bb.tar.xz |
Add is_direct param to /createRoom
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 8758af4ca1..d40ada60c1 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -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: |