From d4df749f4faed051dbb40d67abe07411c4b13df8 Mon Sep 17 00:00:00 2001 From: 果物リン Date: Wed, 8 Oct 2025 17:40:19 +0900 Subject: 絵文字の追加辞書をインストールすると絵文字ピッカーダイアログでユニコード絵文字が出てこないのを修正 (#16618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: ユニコード絵文字の追加辞書をインストールするとユニコード絵文字が出てこなくなる * add change log * Update CHANGELOG.md Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> --- packages/frontend/src/components/MkEmojiPicker.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/components/MkEmojiPicker.vue b/packages/frontend/src/components/MkEmojiPicker.vue index 4ac65a5f45..452546375c 100644 --- a/packages/frontend/src/components/MkEmojiPicker.vue +++ b/packages/frontend/src/components/MkEmojiPicker.vue @@ -326,7 +326,7 @@ watch(q, () => { for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) { for (const emoji of emojis) { - if (keywords.every(keyword => index[emoji.char].some(k => k.includes(keyword)))) { + if (keywords.every(keyword => index[emoji.char]?.some(k => k.includes(keyword)))) { matches.add(emoji); if (matches.size >= max) break; } @@ -343,7 +343,7 @@ watch(q, () => { for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) { for (const emoji of emojis) { - if (index[emoji.char].some(k => k.startsWith(newQ))) { + if (index[emoji.char]?.some(k => k.startsWith(newQ))) { matches.add(emoji); if (matches.size >= max) break; } @@ -360,7 +360,7 @@ watch(q, () => { for (const index of Object.values(store.s.additionalUnicodeEmojiIndexes)) { for (const emoji of emojis) { - if (index[emoji.char].some(k => k.includes(newQ))) { + if (index[emoji.char]?.some(k => k.includes(newQ))) { matches.add(emoji); if (matches.size >= max) break; } -- cgit v1.3.1-freya