From d0c4fe78eedc883049b684899cee87985ee36680 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Dec 2017 23:44:13 +0100 Subject: Allow specifying maximum download size of media using MediaDownloadSize (slack,telegram,matrix) --- bridge/config/config.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/config/config.go') 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 } -- cgit v1.2.3