Skip to content

Commit

Permalink
Added clear inteval when action cable works (#5454)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Oct 11, 2023
1 parent b495066 commit 76dffcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/components/rooms/room/join/JoinCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export default function JoinCard() {

// Play a sound and displays a toast when the meeting starts if the user was in a waiting queue
const notifyMeetingStarted = () => {
clearInterval(joinInterval);

const audio = new Audio(`${process.env.RELATIVE_URL_ROOT}/audios/notify.mp3`);
audio.play()
.catch((err) => {
Expand Down

0 comments on commit 76dffcd

Please sign in to comment.