element-hq / element-hq/element-ios

Copy/pasting GIF uploads still image

Open
#4,667 6 comments 11 reactions 0 assignees View on GitHub
A-Composer T-Defect Z-D1 Z-Impact-1 Z-Papercuts Z-Visibility-2
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

#### Describe the bug.
When copying and pasting a GIF (e.g., from Giphy or Photos), Element converts it to a still image.

#### Steps to reproduce:
Steps to reproduce the behavior:
1. Copy a GIF, e.g., from Giphy or Photos (_not_ from a web browser, since that will replicate a different bug: https://github.com/vector-im/element-ios/issues/2076)
2. In an Element room, paste the GIF into the message input
3. See that the preview of the GIF looks like a still image
4. Press OK to upload the image
5. See that the image uploaded to the server is in fact a still image

#### Expected behavior
The image uploaded to the server should be a GIF. (I don't think it's a big deal that the preview looks like a still image, but animating that would be nice to have.)

#### Contextual information:
- Device: iPhone 12 mini
- OS: iOS 14.7.1
- App Version: 1.4.9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.