diff options
author | Wim <wim@42.be> | 2020-02-15 18:31:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 18:31:40 +0100 |
commit | e343db6f72d2e9a1be8a4cb0137ad86808e3a7eb (patch) | |
tree | a245677d1c4c5ecd7acb68943d05b59bb32ee76a /bridge/telegram | |
parent | 4d57d66f85690244631d10ab4c54bbaabc675598 (diff) | |
download | matterbridge-msglm-e343db6f72d2e9a1be8a4cb0137ad86808e3a7eb.tar.gz matterbridge-msglm-e343db6f72d2e9a1be8a4cb0137ad86808e3a7eb.tar.bz2 matterbridge-msglm-e343db6f72d2e9a1be8a4cb0137ad86808e3a7eb.zip |
Make avatars download work with mediaserverdownload (telegram). Fixes #920 (#1012)
Diffstat (limited to 'bridge/telegram')
-rw-r--r-- | bridge/telegram/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index a74a3f8a..56fd6540 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -95,7 +95,7 @@ func (b *Btelegram) handleUsername(rmsg *config.Message, message *tgbotapi.Messa } } // only download avatars if we have a place to upload them (configured mediaserver) - if b.General.MediaServerUpload != "" { + if b.General.MediaServerUpload != "" || (b.General.MediaServerDownload != "" && b.General.MediaDownloadPath != "") { b.handleDownloadAvatar(message.From.ID, rmsg.Channel) } } |