-
Notifications
You must be signed in to change notification settings - Fork 11k
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
chore: refactor new room sound #34207
Conversation
Looks like this PR is ready to merge! 🎉 |
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34207 +/- ##
========================================
Coverage 75.81% 75.81%
========================================
Files 512 512
Lines 22205 22208 +3
Branches 5403 5404 +1
========================================
+ Hits 16834 16837 +3
Misses 4720 4720
Partials 651 651
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Considering the current PR title, changing it to refactor: new room sound
might be a better fit.
useEffect(() => { | ||
const observer = LivechatInquiry.find( | ||
{ status: LivechatInquiryStatus.QUEUED }, | ||
{ | ||
sort: getOmniChatSortQuery(omnichannelSortingMechanism), | ||
limit: omnichannelPoolMaxIncoming, | ||
}, | ||
).observe({ | ||
added: (_inquiry) => { | ||
KonchatNotification.newRoom(); | ||
}, | ||
}); | ||
|
||
return () => observer.stop(); | ||
}, [omnichannelPoolMaxIncoming, omnichannelSortingMechanism]); |
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.
Maybe this could be moved to the queueManager ? Might be worth it taking a look.
found during this issue:
rocketchat.atlassian.net/browse/CORE-811
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments