Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit b110b35a8844460df24c50820296689fa4880949 Author: Wim <wim@42.be> Date: Sun Nov 29 15:30:21 2020 +0000 Rename jfif to jpg (whatsapp). Fixes #1292 diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index a08cba7..54e0707 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -1706 +17011 @@ func (b *Bwhatsapp) HandleImageMessage(message whatsapp.ImageMessage) {   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])     b.Log.Debugf("Trying to download %s with type %s", filename, message.Type)