mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-20 19:20:41 +00:00
fix(frontend): Unicode絵文字のリアクションが表示に反映されないことがある問題の修正 (#17250)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user