mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 15:39:22 -05:00
Add is_direct param to /createRoom
This commit is contained in:
parent
aa7b890cfe
commit
48a5a7552d
@ -196,6 +196,11 @@ class RoomCreationHandler(BaseHandler):
|
|||||||
},
|
},
|
||||||
ratelimit=False)
|
ratelimit=False)
|
||||||
|
|
||||||
|
content = {}
|
||||||
|
is_direct = config.get("is_direct", None)
|
||||||
|
if is_direct:
|
||||||
|
content["is_direct"] = is_direct
|
||||||
|
|
||||||
for invitee in invite_list:
|
for invitee in invite_list:
|
||||||
yield room_member_handler.update_membership(
|
yield room_member_handler.update_membership(
|
||||||
requester,
|
requester,
|
||||||
@ -203,6 +208,7 @@ class RoomCreationHandler(BaseHandler):
|
|||||||
room_id,
|
room_id,
|
||||||
"invite",
|
"invite",
|
||||||
ratelimit=False,
|
ratelimit=False,
|
||||||
|
content=content,
|
||||||
)
|
)
|
||||||
|
|
||||||
for invite_3pid in invite_3pid_list:
|
for invite_3pid in invite_3pid_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user