1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 16:15:50 +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

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