Skip to content
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

Fix MIME check for JPEG in lightbox copy handler #4643

Merged

Conversation

vinhowe
Copy link
Contributor

@vinhowe vinhowe commented Nov 14, 2020

Contributor checklist:

Description

Reference: https://www.w3.org/Graphics/JPEG/

The lightbox copy menu wasn't showing for JPEG images because #4614 was checking incorrectly for "image/jpg". I've verified that this fixes the issue in my own testing.

@scottnonnenberg-signal
Copy link
Contributor

Can you update this to check for both?

@vinhowe
Copy link
Contributor Author

vinhowe commented Nov 14, 2020

Let me know if 6dddde6 does the trick. I think "image/jpg" is just plain incorrect in all cases (Electron's NativeImage doesn't check for it), but I guess it couldn't hurt to handle it.

@josh-signal josh-signal merged commit 2298577 into signalapp:development Nov 23, 2020
@josh-signal
Copy link
Contributor

Thank you!

josh-signal pushed a commit that referenced this pull request Nov 23, 2020
* Fix MIME check for JPEG in lightbox copy handler

* Handle both image/jpeg and non-standard image/jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants