From fa0c4025f71373310f08f6b85ae38fe58876e6f8 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 11 Jul 2018 23:44:29 +0200 Subject: [PATCH] Fix avatar uploads to work with MediaDownloadPath. Closes #454 --- bridge/mattermost/mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }