Skip to content

Sticker search: try to compare unknown emojis - #8010

Open
eth0fox wants to merge 1 commit into
signalapp:mainfrom
eth0fox:loose-sticker-emoji-search
Open

Sticker search: try to compare unknown emojis#8010
eth0fox wants to merge 1 commit into
signalapp:mainfrom
eth0fox:loose-sticker-emoji-search

Conversation

@eth0fox

@eth0fox eth0fox commented Sep 1, 2026

Copy link
Copy Markdown

First time contributor checklist:

Contributor checklist:

  • My contribution is not related to translations.
  • My commits are in nice logical chunks with good commit messages
  • My changes are rebased on the latest main branch
  • A pnpm run ready run passes successfully (more about tests here)
  • My changes are ready to be shipped to users

Description

If the emoji byte sequence does not exactly match one of the emojis defined in Signal's emoji list, we try and do a localeCompare to the found emojis instead of returning false.

We do this because sometimes, the variation selector character's presence differs from what is defined in a sticker pack, and doing a strict comparison will result in that sticker not being able to be searched for

Fixes #8009

This change implements a divergence in behaviour from Signal Android & iOS clients, however, I think it would be best to resolve this issue in those clients too.

Comment thread ts/components/fun/panels/FunPanelStickers.dom.tsx Outdated
When a user uses the sticker search, we now normalise the relevant emojis from our list, and the sticker's emoji before comparing.

We do this because sometimes, the variation selector character's presence defined in a sticker pack differs from what Signal has defined in it's list of emojis, and doing a strict comparison will result in that sticker not being able to be searched for

Fixes signalapp#8009
@eth0fox
eth0fox force-pushed the loose-sticker-emoji-search branch from 24436ec to 333e14f Compare September 4, 2026 17:36
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.

Certain stickers missing from search

2 participants