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 {
pleaseLogin();
showMovedDialog();
sound.play('reaction');
if (props.mock) {
return;
}

View file

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

View file

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

View file

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

View file

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

View file

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