Ver código fonte

Clean up legacy community stuff

Tulir Asokan 3 anos atrás
pai
commit
1f27a608a6

+ 0 - 2
mautrix_signal/config.py

@@ -45,8 +45,6 @@ class Config(BaseBridgeConfig):
 
         copy("homeserver.asmux")
 
-        copy("appservice.community_id")
-
         copy("signal.socket_path")
         copy("signal.outgoing_attachment_dir")
         copy("signal.avatar_dir")

+ 0 - 6
mautrix_signal/example-config.yaml

@@ -58,12 +58,6 @@ appservice:
     bot_displayname: Signal bridge bot
     bot_avatar: mxc://maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp
 
-    # Community ID for bridged users (changes registration file) and rooms.
-    # Must be created manually.
-    #
-    # Example: "+signal: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 - 12
mautrix_signal/portal.py

@@ -1459,13 +1459,6 @@ class Portal(DBPortal, BasePortal):
                     "content": {"url": self.avatar_url},
                 }
             )
-        if self.config["appservice.community_id"]:
-            initial_state.append(
-                {
-                    "type": "m.room.related_groups",
-                    "content": {"groups": [self.config["appservice.community_id"]]},
-                }
-            )
 
         creation_content = {}
         if not self.config["bridge.federate_rooms"]:
@@ -1512,11 +1505,6 @@ class Portal(DBPortal, BasePortal):
         if not self.is_direct:
             await self._update_participants(source, info)
 
-        # TODO
-        # in_community = await source._community_helper.add_room(source._community_id, self.mxid)
-        # DBUserPortal(user=source.fbid, portal=self.fbid, portal_receiver=self.fb_receiver,
-        #              in_community=in_community).upsert()
-
         return self.mxid
 
     # endregion