diff --git a/CHANGELOG.md b/CHANGELOG.md index 3656aeae82..0cdb0f0a5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ - Enhance: 「お問い合わせ」ページから、バグの調査等に役立つ情報(OSやブラウザのバージョン等)を取得・コピーできるように - Fix: iOSで、デバイスがダークモードだと初回読み込み時にエラーになる問題を修正 - Fix: アクティビティウィジェットのグラフモードが動作しない問題を修正 +- Fix: ユニコード絵文字の追加辞書をインストールするとユニコード絵文字が絵文字ピッカーで検索できなくなる絵文字があるバグを修正 ### Server - Enhance: ユーザーIPを確実に取得できるために設定ファイルにFastifyOptions.trustProxyを追加しました 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; }