Skip to content

Commit

Permalink
Auto-join bridge rooms on Beeper
Browse files Browse the repository at this point in the history
  • Loading branch information
hifi committed Jul 30, 2023
1 parent 94b0176 commit 843b758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion heisenbridge/__main__.py
Expand Up @@ -764,7 +764,9 @@ def sync_connect(room):
if self.config["owner"] and not owner_control_open:
print(f"Opening control room for owner {self.config['owner']}")
try:
room_id = await self.az.intent.create_room(invitees=[self.config["owner"]])
room_id = await self.az.intent.create_room(
invitees=[self.config["owner"]], custom_request_fields={"com.beeper.auto_join_invites": True}
)

room = ControlRoom(
id=room_id, user_id=self.config["owner"], serv=self, members=[self.config["owner"]], bans=[]
Expand Down
1 change: 1 addition & 0 deletions heisenbridge/appservice.py
Expand Up @@ -45,6 +45,7 @@ async def create_room(self, name: str, topic: str, invite: List[str], restricted
"m.room.avatar": 0, # these work as long as rooms are private
},
},
"com.beeper.auto_join_invites": True,
}

if restricted is not None:
Expand Down

0 comments on commit 843b758

Please sign in to comment.