Skip to content

Commit

Permalink
fix small bug with user presence.
Browse files Browse the repository at this point in the history
  • Loading branch information
eprochasson committed Jul 15, 2013
1 parent 76bccfc commit 9a079d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions client/helpers/config.sample

This file was deleted.

4 changes: 2 additions & 2 deletions server/presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}});
}
Expand Down

0 comments on commit 9a079d0

Please sign in to comment.