diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-05-11 15:53:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-11 15:53:02 +0900 |
| commit | c793038a8b7f6de6b45c5d6fddbfe3e330a7b3d2 (patch) | |
| tree | 54bc341c374902256d7d2824b1f1414da30e45ce /packages/frontend/src/components/MkNote.vue | |
| parent | refactor(frontend): MkMarquee のコードの可読性の向上 (#16017) (diff) | |
| download | misskey-c793038a8b7f6de6b45c5d6fddbfe3e330a7b3d2.tar.gz misskey-c793038a8b7f6de6b45c5d6fddbfe3e330a7b3d2.tar.bz2 misskey-c793038a8b7f6de6b45c5d6fddbfe3e330a7b3d2.zip | |
fix(frontend): ノート購読の挙動改善 (#16023)
* fix(frontend): ノート購読の挙動改善
* fix
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index bbcf5de3b5..2737cd93e6 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -410,12 +410,15 @@ provide(DI.mfmEmojiReactCallback, (reaction) => { }); }); +let subscribeManuallyToNoteCapture: () => void = () => { }; + if (!props.mock) { - useNoteCapture({ + const { subscribe } = useNoteCapture({ note: appearNote, parentNote: note, $note: $appearNote, }); + subscribeManuallyToNoteCapture = subscribe; } if (!props.mock) { @@ -472,6 +475,8 @@ function renote(viaKeyboard = false) { os.popupMenu(menu, renoteButton.value, { viaKeyboard, }); + + subscribeManuallyToNoteCapture(); } function reply(): void { @@ -567,6 +572,11 @@ function undoReact(): void { misskeyApi('notes/reactions/delete', { noteId: appearNote.id, + }).then(() => { + noteEvents.emit(`unreacted:${appearNote.id}`, { + userId: $i!.id, + reaction: oldReaction, + }); }); } |