fix: like button not playing reaction sound

Signed-off-by: limepotato <limepot@protonmail.ch>
This commit is contained in:
Marie 2024-07-14 03:51:46 -06:00 committed by limepotato
parent 001736a462
commit 9b20c61de4
2 changed files with 2 additions and 0 deletions

View file

@ -374,6 +374,7 @@ useNoteCapture({
function reply(viaKeyboard = false): void { function reply(viaKeyboard = false): void {
pleaseLogin(); pleaseLogin();
sound.play('reaction');
os.post( os.post(
{ {
reply: appearNote, reply: appearNote,

View file

@ -271,6 +271,7 @@ function reply(viaKeyboard = false): void {
function react(viaKeyboard = false): void { function react(viaKeyboard = false): void {
pleaseLogin(); pleaseLogin();
blur(); blur();
sound.play('reaction');
reactionPicker.show( reactionPicker.show(
reactButton.value, reactButton.value,
(reaction) => { (reaction) => {