mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 07:26:29 +09:00
ReactionsViewerが消えることがある問題を修正
This commit is contained in:
@ -45,6 +45,7 @@ export function useNoteCapture(props: {
|
||||
const currentCount = (note.value.reactions || {})[reaction] || 0;
|
||||
|
||||
note.value.reactions[reaction] = Math.max(0, currentCount - 1);
|
||||
if (note.value.reactions[reaction] === 0) delete note.value.reactions[reaction];
|
||||
|
||||
if ($i && (body.userId === $i.id)) {
|
||||
note.value.myReaction = null;
|
||||
|
Reference in New Issue
Block a user