-
-
Notifications
You must be signed in to change notification settings - Fork 308
Images do not render thumbnails in timeline if missing some data #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
8000
i've tried adding the |
should be integers per spec https://spec.matrix.org/v1.3/client-server-api/#mimage but bot is sending them as string. @williamkray |
wow i'm a dumdum. fixing the bot to send the data as an int did indeed resolve the issue. while the behavior is different than the looser handling of element, since you pointed out the spec i can't realistically ask to keep this open. |
actually, i'd like to re-open this... the thumbnails are not rendered if there is no dimensions included either, and the spec does not say that the dimensions or filesize are required parameters. so this is still actually valid in my opinion. for example, this message source is totally valid according to the spec: {
"content": {
"msgtype": "m.image",
"body": "to_be_fair.gif",
"url": "mxc://jobmachine.org/lnHTATixzDaSKlbqVbycoImb",
"info": {
"mimetype": "image/gif"
}
},
"origin_server_ts": 1660150043142,
"sender": "@cog:jobmachine.org",
"type": "m.room.message",
"unsigned": {},
"event_id": "$trtBQHtzYas6Gl0JDZH75VqKKKamlsdKp_wueDAoQgM",
"room_id": "!asUvXyQSkofLJzSEqe:mssj.me"
} but does not render a thumbnail image in the chat. sorry for flip-flopping all over the place here. |
Describe the bug
I use a Giphy maubot plugin which fetches an image from Giphy.com and uploads the image to the room. In element, these files generate thumbnails just fine and are viewable in the timeline.
In Cinny, these images look like an unrecognized file upload with no thumbnail.
If I manually download the file and re-upload it to Cinny, it renders fine and includes additional image data in the message source. Cinny appears to be depending on this additional data in order to render the thumbnail.
Screenshots and message source included here.
here you see that the giphybot has uploaded the file, but it does not render a thumbnail in the chat. the message source is as follows:
Uploading the same image results in an animated thumbnail:

with the following message source:
this same exchange is rendered correctly in element-web:

Reproduction
or, alternatively, use a client that sends similar message source to the above posted message, or send a custom event that matches the same structure.
Expected behavior
the image should be uploaded and sent, and a thumbnail should render (this behavior is expressed in element-web/desktop)
Platform and versions
Additional context
No response
The text was updated successfully, but these errors were encountered: