diff --git a/client/main.js b/client/main.js index 541df58..0d18793 100644 --- a/client/main.js +++ b/client/main.js @@ -25,7 +25,6 @@ Meteor.startup(function(){ // Questions for the profile form. Meteor.subscribe('questions'); - // Meteor.subscribe('adminShowEveryone'); filepicker.setKey(filePickerKey); }); \ No newline at end of file diff --git a/server/presence.js b/server/presence.js index c0cfc76..59d9fbb 100644 --- a/server/presence.js +++ b/server/presence.js @@ -18,8 +18,8 @@ Meteor.methods({ } else { // If the user is not invisible, and the user previously was offline // tell all his friends he connected - if(!presence.invisible && !presence.online){ - Friends.update({ target: Meteor.userId(), live: 1 }, {$set: {online: 1}}); + if(!presence.invisible){ + Friends.update({ target: Meteor.userId(), live: 1, online: 0 }, {$set: {online: 1}}); } return Presences.update( {user: Meteor.userId()},