From 3b40d6971fe100fb5abbbe1bbcf5920bf5c1499b Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 4 May 2022 03:01:43 -0400 Subject: [PATCH] Remove unimplemented settings that (likely) won't be needed --- matrix_appservice_kakaotalk/config.py | 15 --------------- matrix_appservice_kakaotalk/example-config.yaml | 13 ------------- 2 files changed, 28 deletions(-) diff --git a/matrix_appservice_kakaotalk/config.py b/matrix_appservice_kakaotalk/config.py index ebb5762..a6afc00 100644 --- a/matrix_appservice_kakaotalk/config.py +++ b/matrix_appservice_kakaotalk/config.py @@ -98,11 +98,6 @@ class Config(BaseBridgeConfig): copy("bridge.backfill.initial_limit") copy("bridge.backfill.missed_limit") copy("bridge.backfill.disable_notifications") - """ TODO - copy("bridge.periodic_reconnect.interval") - copy("bridge.periodic_reconnect.always") - copy("bridge.periodic_reconnect.min_connected_time") - """ copy("bridge.resync_max_disconnected_time") copy("bridge.remain_logged_in_on_disconnect") copy("bridge.allow_token_relogin") @@ -111,21 +106,11 @@ class Config(BaseBridgeConfig): copy("bridge.temporary_disconnect_notices") copy("bridge.disable_bridge_notices") copy("bridge.resend_bridge_info") - copy("bridge.mute_bridging") copy("bridge.tag_only_on_create") copy("bridge.sandbox_media_download") copy_dict("bridge.permissions") - """ TODO - for key in ( - "bridge.periodic_reconnect.interval", - ): - value = base.get(key, None) - if isinstance(value, list) and len(value) != 2: - raise ValueError(f"{key} must only be a list of two items") - """ - copy("rpc.connection.type") if base["rpc.connection.type"] == "unix": copy("rpc.connection.path") diff --git a/matrix_appservice_kakaotalk/example-config.yaml b/matrix_appservice_kakaotalk/example-config.yaml index ee77cd6..b7b8c30 100644 --- a/matrix_appservice_kakaotalk/example-config.yaml +++ b/matrix_appservice_kakaotalk/example-config.yaml @@ -175,17 +175,6 @@ bridge: # If using double puppeting, should notifications be disabled # while the initial backfill is in progress? disable_notifications: false - # TODO Implement this - #periodic_reconnect: - # # Interval in seconds in which to automatically reconnect all users. - # # This may prevent KakaoTalk from "switching servers". - # # Set to -1 to disable periodic reconnections entirely. - # # Set to a list of two items to randomize the interval (min, max). - # interval: -1 - # # Should even disconnected users be reconnected? - # always: false - # # Only reconnect if the user has been connected for longer than this value - # min_connected_time: 0 # The number of seconds that a disconnection can last without triggering an automatic re-sync # and missed message backfilling when reconnecting. # Set to 0 to always re-sync, or -1 to never re-sync automatically. @@ -213,8 +202,6 @@ bridge: # This field will automatically be changed back to false after it, # except if the config file is not writable. resend_bridge_info: false - # When using double puppeting, should muted chats be muted in Matrix? - mute_bridging: false # Whether or not mute status and tags should only be bridged when the portal room is created. tag_only_on_create: true # If set to true, downloading media from the CDN will use a plain aiohttp client without the usual headers or