mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-09 11:41:30 -07:00
Fix reply making sound and add sound to star
This commit is contained in:
parent
87d6a62eb7
commit
ed27f70d2d
3 changed files with 1 additions and 2 deletions
|
@ -374,7 +374,6 @@ useNoteCapture({
|
|||
|
||||
function reply(viaKeyboard = false): void {
|
||||
pleaseLogin();
|
||||
sound.play("reaction");
|
||||
os.post(
|
||||
{
|
||||
reply: appearNote,
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue