From 749015807a3f20164ea291f41d288255ee6b22e6 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 1 Dec 2022 20:07:34 +0100 Subject: [PATCH] client: also autocomplete flag emoji Changelog: Changed --- packages/client/src/components/autocomplete.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/autocomplete.vue b/packages/client/src/components/autocomplete.vue index 873f5133b..4a0686438 100644 --- a/packages/client/src/components/autocomplete.vue +++ b/packages/client/src/components/autocomplete.vue @@ -54,15 +54,13 @@ type EmojiDef = { isCustomEmoji?: boolean; }; -const lib = emojilist.filter(x => x.category !== 'flags'); - -const emjdb: EmojiDef[] = lib.map(x => ({ +const emjdb: EmojiDef[] = emojilist.map(x => ({ emoji: x.char, name: x.name, url: char2filePath(x.char), })); -for (const x of lib) { +for (const x of emojilist) { if (x.keywords) { for (const k of x.keywords) { emjdb.push({