Skip to content

Commit

Permalink
Make avatars download work with mediaserverdownload (telegram). Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Feb 15, 2020
1 parent 4d57d66 commit 176581a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/telegram/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 176581a

Please sign in to comment.