-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
In encrypted room, full-size image downloaded immediately when thumbnail exists #28311
Comments
This is done intentionally when the mimetype may be animated (e.g. image/png), we have to load the blob to check if it is animated to render the |
I'm afraid I don't really follow. Can you explain like I'm 5? (naively: if clients have to download the full-sized image, maybe we don't need thumbnails?) |
Design has asked that we show a "GIF" label in the corner of animated media, so that a user can hover/open it to play the animation. When we encounter an image with a mimetype which may be animated ( |
FTR the codepath isn't specific to encrypted rooms: element-web/src/components/views/messages/MImageBody.tsx Lines 278 to 321 in 0899165
|
This feels a bit of a cumbersome solution to the problem. How about having the sender flag the media as animated or not? |
Sure that would be better, but for an indefinite transition period until the majority of bots, bridges, and clients do so we would need to keep this solution |
It really didn't seem to happen in plaintext rooms, though it's possible I was just failing at computers |
m.image
message with a regular image and a thumbnail; do not yet open the full-size image.The text was updated successfully, but these errors were encountered: