Skip to content
Snippets Groups Projects
Commit 6670c72f authored by tamaina's avatar tamaina
Browse files

fix(client): note reacted reflection failed

Fix #9730
parent b21064ff
No related branches found
No related tags found
No related merge requests found
......@@ -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プロパティがない場合ってあったっけ? なければ || {} は消せる
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment