mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Removed strange workaround, fixing #134
This commit is contained in:
parent
302fae6649
commit
c8e5c06a57
1 changed files with 4 additions and 3 deletions
|
@ -987,9 +987,10 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte,
|
||||||
}
|
}
|
||||||
|
|
||||||
// WhatsApp sends incorrect mime types 3:<
|
// WhatsApp sends incorrect mime types 3:<
|
||||||
if detected := http.DetectContentType(data); detected != "application/octet-stream" {
|
portal.log.Debugfln("Before conversion: %s", mimeType)
|
||||||
mimeType = detected
|
//if detected := http.DetectContentType(data); detected != "application/octet-stream" {
|
||||||
}
|
// mimeType = detected
|
||||||
|
//}
|
||||||
|
|
||||||
// synapse doesn't handle webp well, so we convert it. This can be dropped once https://github.com/matrix-org/synapse/issues/4382 is fixed
|
// synapse doesn't handle webp well, so we convert it. This can be dropped once https://github.com/matrix-org/synapse/issues/4382 is fixed
|
||||||
if mimeType == "image/webp" {
|
if mimeType == "image/webp" {
|
||||||
|
|
Loading…
Reference in a new issue