fix: like button not playing reaction sound

This commit is contained in:
Marie 2024-01-02 00:47:08 +01:00
parent c9ca1dd3f1
commit b87142d2f7
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
6 changed files with 6 additions and 0 deletions

View File

@ -562,6 +562,7 @@ function reply(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
if (props.mock) { if (props.mock) {
return; return;
} }

View File

@ -628,6 +628,7 @@ function react(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
os.api('notes/like', { os.api('notes/like', {
noteId: appearNote.value.id, noteId: appearNote.value.id,
override: defaultLike.value, override: defaultLike.value,

View File

@ -224,6 +224,7 @@ function react(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
os.api('notes/like', { os.api('notes/like', {
noteId: props.note.id, noteId: props.note.id,
override: defaultLike.value, override: defaultLike.value,

View File

@ -563,6 +563,7 @@ function reply(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
if (props.mock) { if (props.mock) {
return; return;
} }

View File

@ -636,6 +636,7 @@ function react(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
os.api('notes/like', { os.api('notes/like', {
noteId: appearNote.value.id, noteId: appearNote.value.id,
override: defaultLike.value, override: defaultLike.value,

View File

@ -233,6 +233,7 @@ function react(viaKeyboard = false): void {
function like(): void { function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
sound.play('reaction');
os.api('notes/like', { os.api('notes/like', {
noteId: props.note.id, noteId: props.note.id,
override: defaultLike.value, override: defaultLike.value,