From cbfa52cb2ba1d9dd2c80d64688364ef6767cd719 Mon Sep 17 00:00:00 2001 From: Gabriel Engel Date: Fri, 24 Jul 2015 16:21:07 -0300 Subject: [PATCH] added sounds back --- client/startup/unread.coffee | 7 +++++++ 1 file changed, 7 insertions(+) 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 ->