mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 00:19:24 +01:00
Rename jfif to jpg (whatsapp). Fixes #1292
This commit is contained in:
parent
640a9995f4
commit
ad95e35687
@ -170,6 +170,11 @@ func (b *Bwhatsapp) HandleImageMessage(message whatsapp.ImageMessage) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// rename .jfif to .jpg https://github.com/42wim/matterbridge/issues/1292
|
||||||
|
if fileExt[0] == ".jfif" {
|
||||||
|
fileExt[0] = ".jpg"
|
||||||
|
}
|
||||||
|
|
||||||
filename := fmt.Sprintf("%v%v", message.Info.Id, fileExt[0])
|
filename := fmt.Sprintf("%v%v", message.Info.Id, fileExt[0])
|
||||||
|
|
||||||
b.Log.Debugf("Trying to download %s with type %s", filename, message.Type)
|
b.Log.Debugf("Trying to download %s with type %s", filename, message.Type)
|
||||||
|
Loading…
Reference in New Issue
Block a user