media: assume thumbnails are jpeg

This commit is contained in:
Tulir Asokan
2026-03-29 13:09:56 +03:00
parent dbe9be2102
commit f64b605443
+4
View File
@@ -165,6 +165,10 @@ func (t *Transferer) WithThumbnail(uri id.ContentURIString, file *event.Encrypte
t.fileInfo.ThumbnailURL = uri
t.fileInfo.ThumbnailFile = file
t.fileInfo.ThumbnailInfo = info
// Thumbnails are hopefully always jpeg like photos
if info.MimeType == "application/octet-stream" {
info.MimeType = "image/jpeg"
}
return t
}