move party.removeSelf to client side

This commit is contained in:
Matteo Pagliazzi
2013-10-31 15:41:22 +01:00
parent f5a1ec96f9
commit fc10e9d6e6
3 changed files with 6 additions and 22 deletions

View File

@@ -209,6 +209,10 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
User.user.invitations.party = undefined;
User.log({op:'set',data:{'invitations.party':{}}});
}
$scope.removeSelf = function(member){
return member._id !== User.user._id;
}
}
])