mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 11:56:44 -06:00
parent
b21064ffa4
commit
6670c72f8b
1 changed files with 2 additions and 5 deletions
|
@ -20,11 +20,8 @@ export function useNoteCapture(props: {
|
||||||
case 'reacted': {
|
case 'reacted': {
|
||||||
const reaction = body.reaction;
|
const reaction = body.reaction;
|
||||||
|
|
||||||
if (body.emoji) {
|
if (body.emoji && !(body.emoji.name in note.value.reactionEmojis)) {
|
||||||
const emojis = note.value.emojis || [];
|
note.value.reactionEmojis[body.emoji.name] = body.emoji.url;
|
||||||
if (!emojis.includes(body.emoji)) {
|
|
||||||
note.value.emojis = [...emojis, body.emoji];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: reactionsプロパティがない場合ってあったっけ? なければ || {} は消せる
|
// TODO: reactionsプロパティがない場合ってあったっけ? なければ || {} は消せる
|
||||||
|
|
Loading…
Reference in a new issue