Skip to content

Commit 3b91337

Browse files
committed
Adding membership tag to create room event
1 parent 3d29f91 commit 3b91337

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/room.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,11 @@ async def create_room(
811811
with (await self.room_member_handler.member_linearizer.queue((room_id,))):
812812
content = {}
813813
is_direct = config.get("is_direct", None)
814+
hide_invite = config.get("fi.mau.will_auto_accept", None)
814815
if is_direct:
815816
content["is_direct"] = is_direct
817+
if hide_invite:
818+
content["fi.mau.will_auto_accept"] = True
816819

817820
for invitee in invite_list:
818821
(

0 commit comments

Comments
 (0)