diff options
author | Wim <wim@42.be> | 2018-07-11 23:44:29 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-07-11 23:44:29 +0200 |
commit | fa0c4025f71373310f08f6b85ae38fe58876e6f8 (patch) | |
tree | a41fb0e27cd3f558b2baa735358c29668b3d7e25 | |
parent | 2d2d185200278ff9453c69be60cff13e1bec6e2c (diff) | |
download | matterbridge-msglm-fa0c4025f71373310f08f6b85ae38fe58876e6f8.tar.gz matterbridge-msglm-fa0c4025f71373310f08f6b85ae38fe58876e6f8.tar.bz2 matterbridge-msglm-fa0c4025f71373310f08f6b85ae38fe58876e6f8.zip |
Fix avatar uploads to work with MediaDownloadPath. Closes #454
-rw-r--r-- | bridge/mattermost/mattermost.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 30958a06..ce77b062 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -208,7 +208,7 @@ func (b *Bmattermost) handleMatterClient(messages chan *config.Message) { } // only download avatars if we have a place to upload them (configured mediaserver) - if b.General.MediaServerUpload != "" { + if b.General.MediaServerUpload != "" || b.General.MediaDownloadPath != "" { b.handleDownloadAvatar(message.UserID, message.Channel) } |