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

Add a way to force sending the image as a sticker #4739

Closed
link2xt opened this issue Sep 20, 2023 · 0 comments · Fixed by #4819
Closed

Add a way to force sending the image as a sticker #4739

link2xt opened this issue Sep 20, 2023 · 0 comments · Fixed by #4819

Comments

@link2xt
Copy link
Collaborator

link2xt commented Sep 20, 2023

PR #4619 fixed screenshots being accidentally sent as a stickers on iOS, but now there is another problem. If user explicitly imported an image without transparency into a sticker picker on desktop, the image should always be sent as a sticker. Desktop needs some way to force sending the image as a sticker, maybe with some special ForceSticker viewtype or message Param.

Septias added a commit that referenced this issue Oct 14, 2023
This approach uses a param field to enable forcing the sticker
`viewtype`. The first commit has the memory-only flag implemented, but
this flag is not persistent through the database conversion needed for
draft/undraft. That's why `param` has to be used.

follow up to #4814 
fixes #4739

---------

Co-authored-by: Septias <scoreplayer2000@gmail.comclear>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant