element-x-ada/libraries/mediaupload
cizra a33d717aa0
Don't compress images sent through the Files attachment picker (#6755)
* Don't compress images sent through the Files attachment picker

Images and videos picked through the "Attachment" picker are now
uploaded without re-encoding, regardless of the "Optimize media quality"
setting. The gallery and camera pickers keep the existing behaviour,
matching what Element Web/Desktop and most other messengers do.

Fixes #6365

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Make sure we select the right video preset for sending as file

Wait for the video size estimations to be calculated before preprocessing the video file

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2026-05-20 17:19:08 +02:00
..
api run command ./gradlew ktlintFormat :) 2025-12-04 10:18:19 +01:00
impl Fix portrait image metadata when uploading without media optimization (#6362) 2026-04-08 11:01:54 +02:00
test Don't compress images sent through the Files attachment picker (#6755) 2026-05-20 17:19:08 +02:00