1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 12:05:48 +02:00

fix(frontend): ノート購読の挙動改善 (#16023)

* fix(frontend): ノート購読の挙動改善

* fix

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2025-05-11 15:53:02 +09:00
committed by GitHub
parent 3df421da1a
commit c793038a8b
4 changed files with 51 additions and 14 deletions

View File

@@ -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,
});
});
}