mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-23 19:22:03 -08:00
parent
a189298ab0
commit
b9fb361959
@ -175,6 +175,11 @@ func (b *Bwhatsapp) HandleImageMessage(message whatsapp.ImageMessage) {
|
|||||||
fileExt[0] = ".jpg"
|
fileExt[0] = ".jpg"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// rename .jpe to .jpg https://github.com/42wim/matterbridge/issues/1463
|
||||||
|
if fileExt[0] == ".jpe" {
|
||||||
|
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