From 55390d35dcf1379cc341b6c7d00cc1a9deeec8a6 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sat, 7 Dec 2024 00:37:28 -0800 Subject: [PATCH] wip prioritize :zulip: same as realm emoji --- lib/model/emoji.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/model/emoji.dart b/lib/model/emoji.dart index c942dea5c8..e8a5f8247d 100644 --- a/lib/model/emoji.dart +++ b/lib/model/emoji.dart @@ -400,12 +400,18 @@ class EmojiAutocompleteView extends AutocompleteView true, + ReactionType.unicodeEmoji => false, + }; return switch (result.matchQuality) { EmojiMatchQuality.exact => throw Error(), // handled above - EmojiMatchQuality.prefix => isPopular ? 1 : isRealmEmoji ? 3 : 4, + EmojiMatchQuality.prefix => isPopular ? 1 : isCustomEmoji ? 3 : 4, // TODO word-boundary vs. not - EmojiMatchQuality.internal => isPopular ? 2 : isRealmEmoji ? 5 : 6, + EmojiMatchQuality.internal => isPopular ? 2 : isCustomEmoji ? 5 : 6, }; }