Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop Playing Audio When Switched to a Different Chat #171

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

ProCode2
Copy link
Contributor

Related Issue

Fixes #168

Description

I have used the existing useEffect on src/components/chatblock.tsx to stop the audio when the ChatBlock component unmounts. That way whenever the chat is switched the current playing component unmounts and hence stops the audio.

Copy link

vercel bot commented Jan 18, 2024

@ProCode2 is attempting to deploy a commit to the Open Healthcare Network Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ayushma-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 18, 2024 3:34pm

@skks1212 skks1212 merged commit a9970f8 into coronasafe:master Jan 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop audio playback (if being played) when switched to a different chat
4 participants