1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00

fix(client): note reacted reflection failed

Fix #9730
This commit is contained in:
tamaina 2023-01-26 08:46:21 +00:00
parent b21064ffa4
commit 6670c72f8b

View File

@ -20,11 +20,8 @@ export function useNoteCapture(props: {
case 'reacted': {
const reaction = body.reaction;
if (body.emoji) {
const emojis = note.value.emojis || [];
if (!emojis.includes(body.emoji)) {
note.value.emojis = [...emojis, body.emoji];
}
if (body.emoji && !(body.emoji.name in note.value.reactionEmojis)) {
note.value.reactionEmojis[body.emoji.name] = body.emoji.url;
}
// TODO: reactionsプロパティがない場合ってあったっけ なければ || {} は消せる