summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-12-19 23:44:13 +0100
committerWim <wim@42.be>2017-12-19 23:44:13 +0100
commitd0c4fe78eedc883049b684899cee87985ee36680 (patch)
treeba04699eb3e2557a8a0d6a7806b8e9b8b2a72656 /bridge/config/config.go
parent265457b45171dcae96a1aac9454e3bda2cd0557a (diff)
downloadmatterbridge-msglm-d0c4fe78eedc883049b684899cee87985ee36680.tar.gz
matterbridge-msglm-d0c4fe78eedc883049b684899cee87985ee36680.tar.bz2
matterbridge-msglm-d0c4fe78eedc883049b684899cee87985ee36680.zip
Allow specifying maximum download size of media using MediaDownloadSize (slack,telegram,matrix)
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r--bridge/config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 10f1d5f0..69531440 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -182,6 +182,9 @@ func NewConfig(cfgfile string) *Config {
if fail {
log.Fatalf("Fix your config. Please see changelog for more information")
}
+ if cfg.General.MediaDownloadSize == 0 {
+ cfg.General.MediaDownloadSize = 1000000
+ }
return &cfg
}