fix(frontend): Unicode絵文字のリアクションが表示に反映されないことがある問題の修正 (#17250)

This commit is contained in:
4ster1sk
2026-03-20 17:15:59 +09:00
committed by GitHub
parent df1fa8b90a
commit 0e4732180f

View File

@@ -106,7 +106,9 @@ async function toggleReaction() {
reaction: props.reaction,
}).then(() => {
const emoji = customEmojisMap.get(emojiName.value);
if (emoji == null) return;
if (emoji == null && getUnicodeEmojiOrNull(props.reaction) == null) {
return;
}
noteEvents.emit(`reacted:${props.noteId}`, {
userId: me.id,
reaction: props.reaction,
@@ -138,7 +140,9 @@ async function toggleReaction() {
reaction: props.reaction,
}).then(() => {
const emoji = customEmojisMap.get(emojiName.value);
if (emoji == null) return;
if (emoji == null && getUnicodeEmojiOrNull(props.reaction) == null) {
return;
}
noteEvents.emit(`reacted:${props.noteId}`, {
userId: me.id,