Skip to content

Commit

Permalink
fix: New room sound fired after reconnection (#34202)
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Fabris <[email protected]>
  • Loading branch information
ggazzo and dougfabris authored Dec 18, 2024
1 parent 037e692 commit 9521463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wise-queens-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixes an issue where the notification sound was playing randomly
2 changes: 1 addition & 1 deletion apps/meteor/client/hooks/useNotifyUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const useNotifyUser = () => {
});

const handle = CachedChatSubscription.collection.find().observe({
changed: (sub) => {
added: (sub) => {
void notifyNewRoom(sub);
},
});
Expand Down

0 comments on commit 9521463

Please sign in to comment.