From fdb0718670e82f0783a93c9c97d03ba383bcecf2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 2 May 2022 16:36:07 +0300 Subject: [PATCH] Remove unused media backfill config --- config/bridge.go | 1 - config/upgrade.go | 1 - example-config.yaml | 19 ------------------- 3 files changed, 21 deletions(-) diff --git a/config/bridge.go b/config/bridge.go index 3b7a205..b1e77bf 100644 --- a/config/bridge.go +++ b/config/bridge.go @@ -60,7 +60,6 @@ type BridgeConfig struct { } `yaml:"immediate"` Deferred []DeferredConfig `yaml:"deferred"` - Media []DeferredConfig `yaml:"media"` } `yaml:"history_sync"` UserAvatarSync bool `yaml:"user_avatar_sync"` BridgeMatrixLeave bool `yaml:"bridge_matrix_leave"` diff --git a/config/upgrade.go b/config/upgrade.go index eac2d59..ac4f13e 100644 --- a/config/upgrade.go +++ b/config/upgrade.go @@ -87,7 +87,6 @@ func (helper *UpgradeHelper) doUpgrade() { helper.Copy(Int, "bridge", "history_sync", "immediate", "worker_count") helper.Copy(Int, "bridge", "history_sync", "immediate", "max_events") helper.Copy(List, "bridge", "history_sync", "deferred") - helper.Copy(List, "bridge", "history_sync", "media") helper.Copy(Bool, "bridge", "user_avatar_sync") helper.Copy(Bool, "bridge", "bridge_matrix_leave") helper.Copy(Bool, "bridge", "sync_with_custom_puppets") diff --git a/example-config.yaml b/example-config.yaml index 88ebc3a..e0e2276 100644 --- a/example-config.yaml +++ b/example-config.yaml @@ -182,25 +182,6 @@ bridge: - start_days_ago: -1 max_batch_events: 500 batch_delay: 10 - # Settings for automatically requesting all media that was not found on - # the WhatsApp server. This process happens after the deferred - # backfills are completed. - # The config is the same as for deferred backfills, except the - # max_batch_events represents the maximum number of media messages to - # request. - media: - # Last Month - - start_days_ago: 30 - max_batch_events: 5 - batch_delay: 10 - # Last 3 months - - start_days_ago: 90 - max_batch_events: 5 - batch_delay: 10 - # The start of time - - start_days_ago: -1 - max_batch_events: 10 - batch_delay: 20 # Should puppet avatars be fetched from the server even if an avatar is already set? user_avatar_sync: true # Should Matrix users leaving groups be bridged to WhatsApp?