client: also autocomplete flag emoji

Changelog: Changed
This commit is contained in:
Johann150 2022-12-01 20:07:34 +01:00
parent b030ced51c
commit 749015807a
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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({