mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Remove unused media backfill config
This commit is contained in:
parent
317b4dbffb
commit
fdb0718670
3 changed files with 0 additions and 21 deletions
|
@ -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"`
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue