-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: wrong sound on Omnichannel continuous notification #37042
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
Conversation
…hannelContinuousSoundNotification`
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 765f87c The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughSwitches omnichannel continuous notification loop from “New message” to “New room.” Updates CustomSoundProvider API and UI context to expose playNewRoomLoop and remove playNewMessageLoop. Adjusts client hook to call the new room loop. Adds a changeset patch for @rocket.chat/ui-contexts and @rocket.chat/meteor. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Agent as Agent UI
participant Hook as useOmnichannelContinuousSoundNotification
participant Ctx as CustomSoundContext
participant Provider as CustomSoundProvider
participant Audio as AudioEngine
Agent->>Hook: Unread Livechat room(s) detected
Hook->>Ctx: notificationSounds.playNewRoomLoop()
Ctx->>Provider: Delegate playNewRoomLoop
Provider->>Audio: Start loop("newRoomNotification")
Note over Audio: Continuous playback until cleared
Agent->>Hook: No unread rooms / unmount
Hook->>Ctx: notificationSounds.stop()
Ctx->>Provider: Delegate stop
Provider->>Audio: Stop playback
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (1)apps/meteor/client/providers/CustomSoundProvider/CustomSoundProvider.tsx (1)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #37042 +/- ##
===========================================
+ Coverage 67.40% 67.41% +0.01%
===========================================
Files 3331 3329 -2
Lines 113519 113379 -140
Branches 20604 20713 +109
===========================================
- Hits 76523 76440 -83
+ Misses 34392 34338 -54
+ Partials 2604 2601 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
dougfabris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to keep playNewMessageLoop ?
dougfabris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Proposed changes (including videos or screenshots)
Adjust custom sound loop on Omnichannel continuous notification to play
New roomloop instead ofNew messageloopIssue(s)
Steps to test or reproduce
Further comments
CORE-1394
Summary by CodeRabbit
Bug Fixes
Chores