Skip to content
Snippets Groups Projects
Commit 9eccefef authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Actually add appservice.community_id as a flair for portal rooms

parent f5bd7770
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,11 @@ class Portal:
name = self.name
initial_state.append({"type": str(EventType.ROOM_AVATAR),
"content": {"avatar_url": self._avatar_uri}})
if config["appservice.community_id"]:
initial_state.append({
"type": "m.room.related_groups",
"content": {"groups": [config["appservice.community_id"]]},
})
self.mxid = await self.main_intent.create_room(name=name, is_direct=self.is_direct,
initial_state=initial_state,
invitees=[source.mxid])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment