element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.73k stars 493 forks source link

Images sent to a room using RiotX don't display on Riot iOS #2872

Open starcraft66 opened 4 years ago

starcraft66 commented 4 years ago

For some reason, images sent from an android device using RiotX show up blank on Riot iOS but show up find on any other Riot client (desktop/web or android). This happens in both unencrypted and end-to-end encrypted rooms.

manuroe commented 4 years ago

@starcraft66, If you can send such image into https://riot.im/develop/#/room/#riot-ios:matrix.org, that would be great. Please then add a permalink to this image here.

starcraft66 commented 4 years ago

@manuroe, it is unfortunately not possible for me to do that because my home server is ACL banned from that room.

I have created a local public room (#riot-ios-issue-2872:nerdsin.space) and uploaded an image there using RiotX on my phone. The link to the image is mxc://nerdsin.space/KNEZFKjlNjMPdIZvuozvragV

matrixes commented 4 years ago

So, because the server I am a part of has quite a few iOS users and they repeatedly tell me they can't see the images I post, here's an example following your directions: https://matrix.to/#/!pMBteVpcoJRdCJxDmn:matrix.org/$PK67G_zfgeI1w_XjXlrRL2qV_RA8qnAAmohYdgV2qoU

This is a PNG uploaded in full size from Android RiotX 0.18.1 [40018012] (G-b2194).

The iOS user is sporting Riot version 0.10.4 v0.10.4 #20191211090517

tfreedman commented 4 years ago

I'm experiencing the same issue (as the RiotX user), and friends of mine can reproduce this (as iOS users)

tfreedman commented 4 years ago

I think this is because RiotX isn't sending width / height data for uploaded image thumbnails - the event just has "w": 0, "h": 0.