Skip to content

Commit

Permalink
Fix bug with stuck sound state when using an invalid id
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchemmc committed Feb 25, 2022
1 parent a4c150c commit f343b77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ const soundboardPlayAction = {
await api("soundboard/stop", "PUT", {
id: settings.id,
});
soundboardActions[context].playing = false;
this.updateImage(context, false);
} else {
await api("soundboard/play", "PUT", {
id: settings.id,
});
soundboardActions[context].playing = true;
this.updateImage(context, true);
}
} else {
Expand Down

0 comments on commit f343b77

Please sign in to comment.