mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix(frontend): Unicode絵文字のリアクションが表示に反映されないことがある問題の修正 (#17250)
This commit is contained in:
@@ -106,7 +106,9 @@ async function toggleReaction() {
|
|||||||
reaction: props.reaction,
|
reaction: props.reaction,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const emoji = customEmojisMap.get(emojiName.value);
|
const emoji = customEmojisMap.get(emojiName.value);
|
||||||
if (emoji == null) return;
|
if (emoji == null && getUnicodeEmojiOrNull(props.reaction) == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
noteEvents.emit(`reacted:${props.noteId}`, {
|
noteEvents.emit(`reacted:${props.noteId}`, {
|
||||||
userId: me.id,
|
userId: me.id,
|
||||||
reaction: props.reaction,
|
reaction: props.reaction,
|
||||||
@@ -138,7 +140,9 @@ async function toggleReaction() {
|
|||||||
reaction: props.reaction,
|
reaction: props.reaction,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const emoji = customEmojisMap.get(emojiName.value);
|
const emoji = customEmojisMap.get(emojiName.value);
|
||||||
if (emoji == null) return;
|
if (emoji == null && getUnicodeEmojiOrNull(props.reaction) == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
noteEvents.emit(`reacted:${props.noteId}`, {
|
noteEvents.emit(`reacted:${props.noteId}`, {
|
||||||
userId: me.id,
|
userId: me.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user