From 3408dcc014b26b31020c170d559e9cb15b80982e Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Fri, 27 Feb 2026 14:35:51 -0500 Subject: [PATCH] Allow emoji search by direct emoji --- src/cheogram/java/com/cheogram/android/EmojiSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cheogram/java/com/cheogram/android/EmojiSearch.java b/src/cheogram/java/com/cheogram/android/EmojiSearch.java index c94422688b1c4fe0a31bdec23c476bad198290fb..d308166a87ea5fd9c02d7e0168b8d299b8c57d1c 100644 --- a/src/cheogram/java/com/cheogram/android/EmojiSearch.java +++ b/src/cheogram/java/com/cheogram/android/EmojiSearch.java @@ -77,7 +77,7 @@ public class EmojiSearch { public synchronized List find(final String q) { final ResultPQ pq = new ResultPQ(); for (Emoji e : emoji) { - if (e.emoticonMatch(q)) { + if (e.emoticonMatch(q) || e.uniquePart().equals(q)) { pq.addTopK(e, 999999, 10); } int shortcodeScore = e.shortcodes.isEmpty() ? 0 : Collections.max(Lists.transform(e.shortcodes, (shortcode) -> FuzzySearch.ratio(q, shortcode)));