From ed27f70d2dd70a62a683e4446b35277b84e47632 Mon Sep 17 00:00:00 2001 From: limepotato Date: Sun, 14 Jul 2024 06:32:44 -0600 Subject: [PATCH] Fix reply making sound and add sound to star --- packages/client/src/components/MkNote.vue | 1 - packages/client/src/components/MkStarButton.vue | 1 + packages/client/src/components/MkStarButtonNoEmoji.vue | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index c1f388c29..bb511ef35 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -374,7 +374,6 @@ useNoteCapture({ function reply(viaKeyboard = false): void { pleaseLogin(); - sound.play("reaction"); os.post( { reply: appearNote, diff --git a/packages/client/src/components/MkStarButton.vue b/packages/client/src/components/MkStarButton.vue index 021cd72bc..f510ff814 100644 --- a/packages/client/src/components/MkStarButton.vue +++ b/packages/client/src/components/MkStarButton.vue @@ -52,6 +52,7 @@ const props = defineProps<{ function star(ev?: MouseEvent): void { pleaseLogin(); + sound.play("reaction"); os.api("notes/reactions/create", { noteId: props.note.id, reaction: diff --git a/packages/client/src/components/MkStarButtonNoEmoji.vue b/packages/client/src/components/MkStarButtonNoEmoji.vue index 3b1d6291f..c1f042259 100644 --- a/packages/client/src/components/MkStarButtonNoEmoji.vue +++ b/packages/client/src/components/MkStarButtonNoEmoji.vue @@ -65,7 +65,6 @@ function toggleStar(ev?: MouseEvent): void { if (!props.reacted) { sound.play("reaction"); - os.api("notes/reactions/create", { noteId: props.note.id, reaction: instance.defaultReaction,