-
Notifications
You must be signed in to change notification settings - Fork 237
Fix room and user avatar downloaded with a .bin
extension.
#4830
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
Conversation
… full mimetype when a base mimetype is available. Fixes #4803
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
|
I think this is doing what iOS does, assuming images are jpgs. At least, when I downloaded this image it appeared as It's better than what we have, but I was thinking about something more like this option. |
Yes, I was thinking about that too, but here, it appears that it's the Rust SDK which downloads the file and decides of its extension based on the provided mime type. So I'd argue that this problem could be fixed SDK side. In the meantime I think that this fix is enough as a first step. Do you agree? |
Yes, it's probably fine. Also, it seems like there are some very handy mime type libraries on Rust that could solve this problem instead of us re-implementing them ourselves. It's probably worth a shot doing it there. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4830 +/- ##
===========================================
- Coverage 80.47% 80.46% -0.01%
===========================================
Files 2140 2140
Lines 56756 56762 +6
Branches 7110 7114 +4
===========================================
Hits 45672 45672
- Misses 8649 8655 +6
Partials 2435 2435 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Content
Let the SDK set a correct extension to downloaded file by providing a full mimetype when a base mimetype is available.
Motivation and context
Fixes #4803
Screenshots / GIFs
Tests
jpeg
, it wasbin
previously.Tested devices
Checklist