Remove unused media backfill config

This commit is contained in:
Tulir Asokan 2022-05-02 16:36:07 +03:00
parent 317b4dbffb
commit fdb0718670
3 changed files with 0 additions and 21 deletions

View file

@ -60,7 +60,6 @@ type BridgeConfig struct {
} `yaml:"immediate"` } `yaml:"immediate"`
Deferred []DeferredConfig `yaml:"deferred"` Deferred []DeferredConfig `yaml:"deferred"`
Media []DeferredConfig `yaml:"media"`
} `yaml:"history_sync"` } `yaml:"history_sync"`
UserAvatarSync bool `yaml:"user_avatar_sync"` UserAvatarSync bool `yaml:"user_avatar_sync"`
BridgeMatrixLeave bool `yaml:"bridge_matrix_leave"` BridgeMatrixLeave bool `yaml:"bridge_matrix_leave"`

View file

@ -87,7 +87,6 @@ func (helper *UpgradeHelper) doUpgrade() {
helper.Copy(Int, "bridge", "history_sync", "immediate", "worker_count") helper.Copy(Int, "bridge", "history_sync", "immediate", "worker_count")
helper.Copy(Int, "bridge", "history_sync", "immediate", "max_events") helper.Copy(Int, "bridge", "history_sync", "immediate", "max_events")
helper.Copy(List, "bridge", "history_sync", "deferred") 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", "user_avatar_sync")
helper.Copy(Bool, "bridge", "bridge_matrix_leave") helper.Copy(Bool, "bridge", "bridge_matrix_leave")
helper.Copy(Bool, "bridge", "sync_with_custom_puppets") helper.Copy(Bool, "bridge", "sync_with_custom_puppets")

View file

@ -182,25 +182,6 @@ bridge:
- start_days_ago: -1 - start_days_ago: -1
max_batch_events: 500 max_batch_events: 500
batch_delay: 10 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? # Should puppet avatars be fetched from the server even if an avatar is already set?
user_avatar_sync: true user_avatar_sync: true
# Should Matrix users leaving groups be bridged to WhatsApp? # Should Matrix users leaving groups be bridged to WhatsApp?