From c793038a8b7f6de6b45c5d6fddbfe3e330a7b3d2 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 11 May 2025 15:53:02 +0900 Subject: fix(frontend): ノート購読の挙動改善 (#16023) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(frontend): ノート購読の挙動改善 * fix --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --- packages/frontend/src/components/MkNoteDetailed.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'packages/frontend/src/components/MkNoteDetailed.vue') diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 5a2af6ac63..ea59254f3d 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -397,7 +397,7 @@ const reactionsPagination = computed(() => ({ }, })); -useNoteCapture({ +const { subscribe: subscribeManuallyToNoteCapture } = useNoteCapture({ note: appearNote, parentNote: note, $note: $appearNote, @@ -453,6 +453,9 @@ function renote() { const { menu } = getRenoteMenu({ note: note, renoteButton }); os.popupMenu(menu, renoteButton.value); + + // リノート後は反応が来る可能性があるので手動で購読する + subscribeManuallyToNoteCapture(); } function reply(): void { @@ -527,6 +530,11 @@ function undoReact(targetNote: Misskey.entities.Note): void { if (!oldReaction) return; misskeyApi('notes/reactions/delete', { noteId: targetNote.id, + }).then(() => { + noteEvents.emit(`unreacted:${appearNote.id}`, { + userId: $i!.id, + reaction: oldReaction, + }); }); } -- cgit v1.2.3-freya