Skip to content

Revert "fix: handle NotAllowedError from audio.play()"#23

Merged
Just-Insane merged 1 commit into
devfrom
revert-22-seer/fix/handle-audio-play-notallowederror
Jun 3, 2026
Merged

Revert "fix: handle NotAllowedError from audio.play()"#23
Just-Insane merged 1 commit into
devfrom
revert-22-seer/fix/handle-audio-play-notallowederror

Conversation

@Just-Insane

Copy link
Copy Markdown
Collaborator

Reverts #22

Copilot AI review requested due to automatic review settings June 3, 2026 13:09
@Just-Insane Just-Insane merged commit dbcfd30 into dev Jun 3, 2026
10 of 11 checks passed
@Just-Insane Just-Insane deleted the revert-22-seer/fix/handle-audio-play-notallowederror branch June 3, 2026 13:09
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

⚠️ Missing changeset

This pull request does not include a changeset. Please add one before requesting review so the change is properly documented and included in the release notes.

How to add a changeset:

  1. Run pnpm run document-change (interactive) and commit the generated file, or
  2. Manually create .changeset/<descriptive-name>.md:
---
default: patch
---

Short user-facing summary of the change.

Replace patch with major, minor, patch, docs, or note as appropriate.

📖 Read more in CONTRIBUTING.md.

If this PR is internal/maintenance with no user-facing impact, a maintainer can add the internal label to skip this check.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts a prior change (#22) that handled HTMLAudioElement.play() rejections for notification sounds, returning the behavior to calling play() without handling promise failures.

Changes:

  • Removed .catch(() => {}) handling from invite notification sound playback.
  • Removed .catch(() => {}) handling from message notification sound playback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 198 to 202
const playSound = useCallback(() => {
const audioElement = audioRef.current;
audioElement?.play().catch(() => {});
audioElement?.play();
clearMediaSessionQuickly();
}, []);
Comment on lines 272 to 276
const playSound = useCallback(() => {
const audioElement = audioRef.current;
audioElement?.play().catch(() => {});
audioElement?.play();
clearMediaSessionQuickly();
}, []);
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-23-sable.justin-tech.workers.dev 89376ec pr-23 Wed, 03 Jun 2026 13:11:37 GMT

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.

2 participants