From b9fb3619594734017baaaca295c98c2881ce7423 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 23 May 2021 00:17:55 +0200 Subject: Rename .jpe files to .jpg Fixes #1463 (whatsapp) (#1485) --- bridge/whatsapp/handlers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index 55aaf868..8eb02b58 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -175,6 +175,11 @@ func (b *Bwhatsapp) HandleImageMessage(message whatsapp.ImageMessage) { 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]) b.Log.Debugf("Trying to download %s with type %s", filename, message.Type) -- cgit v1.2.3