-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
Description
Description
Searching for a custom emoji by its alias does not return results in the emoji picker. While searching by the primary name works correctly, aliases are ignored, which reduces discoverability of custom emojis.
Environment
- Rocket.Chat version: develop branch
- Browser: Chrome
- OS: macOS
Steps to Reproduce
- Navigate to Administration → Custom Emojis
- Create a custom emoji with the name
cat - Add the alias
meow - Open the emoji picker in any chat
- Search for
cat→ the emoji appears - Search for
meow→ no results are returned
Expected Behavior
Searching for any defined alias of a custom emoji should return that emoji in the emoji picker.
Actual Behavior
The search logic only considers the primary name of the emoji and ignores defined aliases.
Technical Context
The getEmojisBySearchTerm function in:
apps/meteor/app/emoji/client/helpers.ts
filters emojis based on the primary name but does not account for:
- the
aliasOfproperty - the
aliasesarray for custom emojis
Proposed Fix
Update the getEmojisBySearchTerm filtering logic to include alias matching when searching for emojis, ensuring that both primary names and aliases are considered during search.
Attachments
Video demonstrating the issue and reproduction steps.
Screen.Recording.2026-03-06.at.12.57.37.AM.mov
Reactions are currently unavailable