From 4013f822de6b829a90553aa090a11b7a7fadedaa Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 6 Feb 2022 17:38:15 +0200 Subject: [PATCH] Remove community_id config option --- mautrix_telegram/config.py | 2 -- mautrix_telegram/example-config.yaml | 6 ------ mautrix_telegram/portal.py | 7 ------- 3 files changed, 15 deletions(-) diff --git a/mautrix_telegram/config.py b/mautrix_telegram/config.py index 4f516a6c..3b172f5c 100644 --- a/mautrix_telegram/config.py +++ b/mautrix_telegram/config.py @@ -95,8 +95,6 @@ class Config(BaseBridgeConfig): if "pool_pre_ping" in base["appservice.database_opts"]: del base["appservice.database_opts.pool_pre_ping"] - copy("appservice.community_id") - copy("metrics.enabled") copy("metrics.listen_port") diff --git a/mautrix_telegram/example-config.yaml b/mautrix_telegram/example-config.yaml index 1b516426..c3a316d4 100644 --- a/mautrix_telegram/example-config.yaml +++ b/mautrix_telegram/example-config.yaml @@ -78,12 +78,6 @@ appservice: bot_displayname: Telegram bridge bot bot_avatar: mxc://maunium.net/tJCRmUyJDsgRNgqhOgoiHWbX - # Community ID for bridged users (changes registration file) and rooms. - # Must be created manually. - # - # Example: "+telegram: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. diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 4d4b9707..ff2df19b 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -838,13 +838,6 @@ class Portal(DBPortal, BasePortal): self.title = puppet.displayname self.avatar_url = puppet.avatar_url self.photo_id = puppet.photo_id - 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"]: creation_content["m.federate"] = False