mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-24 19:07:32 -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 {
|
function reply(viaKeyboard = false): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
sound.play("reaction");
|
|
||||||
os.post(
|
os.post(
|
||||||
{
|
{
|
||||||
reply: appearNote,
|
reply: appearNote,
|
||||||
|
|
|
@ -52,6 +52,7 @@ const props = defineProps<{
|
||||||
|
|
||||||
function star(ev?: MouseEvent): void {
|
function star(ev?: MouseEvent): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
|
sound.play("reaction");
|
||||||
os.api("notes/reactions/create", {
|
os.api("notes/reactions/create", {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
reaction:
|
reaction:
|
||||||
|
|
|
@ -65,7 +65,6 @@ function toggleStar(ev?: MouseEvent): void {
|
||||||
|
|
||||||
if (!props.reacted) {
|
if (!props.reacted) {
|
||||||
sound.play("reaction");
|
sound.play("reaction");
|
||||||
|
|
||||||
os.api("notes/reactions/create", {
|
os.api("notes/reactions/create", {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
reaction: instance.defaultReaction,
|
reaction: instance.defaultReaction,
|
||||||
|
|
Loading…
Reference in a new issue