deleted custom emoji may still show up in the "recent emoji" picker
(2023.12, probably also 2024.02)
MkEmojiPicker
takes the recentlyUSedEmoji
reactive state to show the recently used emoji
it does not check if those emoji are still valid; MkAutocomplete
does check that:
emojis.value = defaultStore.state.recentlyUsedEmojis.map(emoji => emojiDb.value.find(dbEmoji => dbEmoji.emoji === emoji)).filter(x => x) as EmojiDef[];
(emojiDb
is from packages/frontend/src/custom-emojis.ts
)
so, apply the same filter to the picker, and maybe update the recentlyUsedEmoji
with the filtered values.
thanks to nullPointerException for discovering and reporting the problem
Contribution Guidelines By submitting this issue, you agree to follow our Contribution Guidelines
- I agree to follow this project's Contribution Guidelines
- I have searched the issue tracker for similar issues, and this is not a duplicate.