1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 15:26:08 +02:00

絵文字の追加辞書をインストールすると絵文字ピッカーダイアログでユニコード絵文字が出てこないのを修正 (#16618)

* 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>
This commit is contained in:
果物リン
2025-10-08 17:40:19 +09:00
committed by GitHub
parent 04e2d44d28
commit d4df749f4f
2 changed files with 4 additions and 3 deletions

View File

@@ -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;
}