Make emoji picker use grouped unicode emojis

This commit is contained in:
Tusooa Zhu 2022-01-08 16:55:00 -05:00
commit 8f4f02683f
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 48 additions and 22 deletions

View file

@ -59,7 +59,7 @@ const ReactButton = {
if (this.filterWord !== '') {
const filterWordLowercase = trim(this.filterWord.toLowerCase())
const orderedEmojiList = []
for (const emoji of this.$store.state.instance.emoji) {
for (const emoji of this.$store.getters.standardEmojiList) {
if (emoji.replacement === this.filterWord) return [emoji]
const indexOfFilterWord = emoji.displayText.toLowerCase().indexOf(filterWordLowercase)
@ -72,7 +72,7 @@ const ReactButton = {
}
return orderedEmojiList.flat()
}
return this.$store.state.instance.emoji || []
return this.$store.getters.standardEmojiList || []
},
mergedConfig () {
return this.$store.getters.mergedConfig