Skip to content

Commit

Permalink
only triggers notifyNewRoom on added event collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 17, 2024
1 parent 0fcdc3e commit c15ab3f
Showing 1 changed file with 1 addition and 1 deletion.
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 c15ab3f

Please sign in to comment.