element-android
element-android copied to clipboard
Some sent images don't show in element android, in element-web they do
Steps to reproduce
When a particar image is sent in matrix, element android won't load it. The image in question is this: https://i.redd.it/6mxd4z5976b91.png. This applies for some other images also.
This is what shows in the app itself:

However, in element web it shows normally.
Outcome
What did you expect?
An image to be showed normally in element android.
What happened instead?
A blank space in the place of the image shows instead.
Note: the image can still be downloaded by clicking in the blank space and pressing download
Your phone model
Nokia 6
Operating system version
Lineage OS 15.1
Application version and app store
1.4.25 [40104250] (F-1f34d368) (F-droid)
Homeserver
matrix.based-jacob.xyz
Will you send logs?
Yes
Are you willing to provide a PR?
Yes
I've noticed that if a message source has a body with mimetype "image/png", or has msgtype "m.image", it will display the image. But if its mimetype is "text/plain" or "text/html" and an image is included, the image isn't visible.
In other words, an image won't show up in element-android if the message includes both image and text (but will on element-web and element-desktop).
This issue still appears irregular. If i send many pictures around 4-5 MB, then only a few are really visible after few hours. The recipients only see black place holders. And the sent messages are only pictures no text added.
Regretfully the issue still persists. Pixel 5 Lineage OS 20
Some photos sent in different client on desktop are not shown on Android client. Looks to be irrelevant to size.
I'm currently experiencing this issue. Element on Android from F-Droid (GrapheneOS): Fully black images Element X on Android from F-Droid (GrapheneOS): Fully white images Element on Fedora from Flathub: Images displaying correctly Element on Windows: Images displaying correctly
I can't download broken images on Android. Element just does nothing, and Element X shows an error with no details upon clicking an image to enlarge it.
Experiencing the issue on CrDroid. (Android 13)
to me it seems this issue persists on android 12 and above since images load fine on windows, KDE neon, my iphone SE 2, alcatel 1 2021 running android 11 and my note 3 running android 9, but does not work on my moto g53 running android 14