浏览代码

Remove community_id config option

Tulir Asokan 3 年之前
父节点
当前提交
e2ae1ca503
共有 3 个文件被更改,包括 0 次插入15 次删除
  1. 0 2
      mautrix_instagram/config.py
  2. 0 6
      mautrix_instagram/example-config.yaml
  3. 0 7
      mautrix_instagram/portal.py

+ 0 - 2
mautrix_instagram/config.py

@@ -47,8 +47,6 @@ class Config(BaseBridgeConfig):
 
         copy("homeserver.asmux")
 
-        copy("appservice.community_id")
-
         copy("metrics.enabled")
         copy("metrics.listen_port")
 

+ 0 - 6
mautrix_instagram/example-config.yaml

@@ -50,12 +50,6 @@ appservice:
     bot_displayname: Instagram bridge bot
     bot_avatar: mxc://maunium.net/JxjlbZUlCPULEeHZSwleUXQv
 
-    # Community ID for bridged users (changes registration file) and rooms.
-    # Must be created manually.
-    #
-    # Example: "+instagram:example.com". Set to false to disable.
-    community_id: false
-
     # Whether or not to receive ephemeral events via appservice transactions.
     # Requires MSC2409 support (i.e. Synapse 1.22+).
     # You should disable bridge -> sync_with_custom_puppets when this is enabled.

+ 0 - 7
mautrix_instagram/portal.py

@@ -1497,13 +1497,6 @@ class Portal(DBPortal, BasePortal):
                 invites.append(self.az.bot_mxid)
         if self.encrypted or self.private_chat_portal_meta or not self.is_direct:
             name = self.name
-        if self.config["appservice.community_id"]:
-            initial_state.append(
-                {
-                    "type": "m.room.related_groups",
-                    "content": {"groups": [self.config["appservice.community_id"]]},
-                }
-            )
 
         # We lock backfill lock here so any messages that come between the room being created
         # and the initial backfill finishing wouldn't be bridged before the backfill messages.