diff --git a/lib/model/emoji.dart b/lib/model/emoji.dart index e8a5f8247d..00dac73546 100644 --- a/lib/model/emoji.dart +++ b/lib/model/emoji.dart @@ -328,7 +328,7 @@ class EmojiStoreImpl with EmojiStore { /// (Rather vacuous for the moment; this structure will /// gain more substance in an upcoming commit.) enum EmojiMatchQuality { - exact, prefix, internal; + exact, prefix, other; /// The best possible quality of match. static const best = exact; @@ -408,10 +408,10 @@ class EmojiAutocompleteView extends AutocompleteView false, }; return switch (result.matchQuality) { - EmojiMatchQuality.exact => throw Error(), // handled above - EmojiMatchQuality.prefix => isPopular ? 1 : isCustomEmoji ? 3 : 4, + EmojiMatchQuality.exact => throw Error(), // handled above + EmojiMatchQuality.prefix => isPopular ? 1 : isCustomEmoji ? 3 : 4, // TODO word-boundary vs. not - EmojiMatchQuality.internal => isPopular ? 2 : isCustomEmoji ? 5 : 6, + EmojiMatchQuality.other => isPopular ? 2 : isCustomEmoji ? 5 : 6, }; } @@ -462,7 +462,7 @@ class EmojiAutocompleteQuery extends ComposeAutocompleteQuery { EmojiMatchQuality? _matchName(String emojiName) { if (emojiName == _adjusted) return EmojiMatchQuality.exact; if (emojiName.startsWith(_adjusted)) return EmojiMatchQuality.prefix; - if (_nameMatches(emojiName)) return EmojiMatchQuality.internal; + if (_nameMatches(emojiName)) return EmojiMatchQuality.other; return null; }