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: Never change Viewtype::Sticker to Image if file has non-image extension (#6352) #6353

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Dec 20, 2024

Fix #6352

@iequidoo iequidoo requested a review from adbenitez December 20, 2024 19:54
@iequidoo iequidoo changed the title docs: That Viewtype::Sticker may be changed to Image and how to disable that (#6352) fix: Never change Viewtype::Sticker to Image if file has non-image extension (#6352) Dec 21, 2024
…tension (#6352)

Even if UIs don't call `Message::force_sticker()`, they don't want conversions of `Sticker` to
`Image` if it's obviously not an image, particularly, has non-image extension. Also UIs don't want
conversions of `Sticker` to anything other than `Image`, so let's keep the `Sticker` viewtype in
this case.
@iequidoo iequidoo force-pushed the iequidoo/doc-viewtype-sticker branch from 6147671 to d59debd Compare December 21, 2024 03:01
@iequidoo iequidoo marked this pull request as ready for review December 21, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GIFs from Gboard are sent as JPEG
1 participant