diff --git a/client/startup/unread.coffee b/client/startup/unread.coffee index 7e73adf583d..09407992073 100644 --- a/client/startup/unread.coffee +++ b/client/startup/unread.coffee @@ -1,3 +1,10 @@ +Meteor.startup -> + + ChatSubscription.find({}, { fields: { unread: 1 } }).observeChanges + changed: (id, fields) -> + if fields.unread and fields.unread > 0 + KonchatNotification.newMessage() + Meteor.startup -> Tracker.autorun ->