The file.mimetype is not present there. It works on Desktop and Web without any problem.
When I copy the mimetype from the info section, the image display properly.
Then I try to send a sticker which has a special "type": "m.sticker".
It fail to display again.
I set it back to "m.room.message" and it works.
Expected behavior
The info section is there to manage the filetype. We should not rely on the file.mimetype.
The m.room.message or m.sticker should work the same way also.
Screenshots
Desktop (please complete the following information):
OS: MacOS
Version: 11.2
Smartphone (please complete the following information):
Device: iPhone12
OS: iOS
Version 14.4
Additional context
Add any other context about the problem here.
Describe the bug When we upload a webp image without a thumbnail, element on iOS doesn't display it.
To Reproduce
I use mautrix-signal.
The content decrypted looks like:
The file.mimetype is not present there. It works on Desktop and Web without any problem.
When I copy the mimetype from the info section, the image display properly.
Then I try to send a sticker which has a special "type": "m.sticker".
It fail to display again.
I set it back to "m.room.message" and it works.
Expected behavior The info section is there to manage the filetype. We should not rely on the file.mimetype. The m.room.message or m.sticker should work the same way also.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.