From 9a079d0579f5eda6f2222f9a2923cd570f41496a Mon Sep 17 00:00:00 2001 From: Emmanuel Prochasson Date: Mon, 15 Jul 2013 13:21:46 +0800 Subject: [PATCH] fix small bug with user presence. --- client/helpers/config.sample | 9 --------- server/presence.js | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 client/helpers/config.sample diff --git a/client/helpers/config.sample b/client/helpers/config.sample deleted file mode 100644 index 24a80b6..0000000 --- a/client/helpers/config.sample +++ /dev/null @@ -1,9 +0,0 @@ -console.log('loading sample config'); - -Accounts.ui.config({ - passwordSignupFields: 'EMAIL_ONLY' -}); - -Meteor.setLocale('en_GB'); - -filePickerKey = "Av2HCAqJSM2aHdX5yKTZtz"; \ No newline at end of file diff --git a/server/presence.js b/server/presence.js index 59d9fbb..c99e045 100644 --- a/server/presence.js +++ b/server/presence.js @@ -16,8 +16,8 @@ Meteor.methods({ online: 1 }); } else { - // If the user is not invisible, and the user previously was offline - // tell all his friends he connected + // If the user is not invisible + // tell all his friends he is connected (if they didn't know before). if(!presence.invisible){ Friends.update({ target: Meteor.userId(), live: 1, online: 0 }, {$set: {online: 1}}); }