Improve emoji suggestions

This commit is contained in:
Aleksandras Kostarevas 2024-03-15 10:15:16 -05:00
parent da9abecce4
commit b15d882d77
2 changed files with 2 additions and 3 deletions

View File

@ -19409,7 +19409,6 @@
, "description": "A button (blood type)"
, "category": "Symbols"
, "aliases": [
"a"
]
, "tags": [
]

View File

@ -371,8 +371,8 @@ class PersistentEmojiState : PersistentActionState {
emojiAliases = HashMap<String, EmojiItem>().apply {
emojis.value!!.forEach { emoji ->
emoji.tags.forEach { put(it, emoji) }
emoji.aliases.forEach { put(it, emoji) }
emoji.tags.forEach { put(it.split("_").first(), emoji) }
emoji.aliases.forEach { put(it.split("_").first(), emoji) }
}
}