Merge pull request #7657 from Hus274/7600

Removing accepted guild invitations from the local copy of the user o…
This commit is contained in:
Blade Barringer 2016-06-16 07:20:43 -05:00 committed by GitHub
commit c34c21192b

View file

@ -65,6 +65,8 @@ habitrpg.controller("GuildsCtrl", ['$scope', 'Groups', 'User', 'Challenges', '$r
Analytics.track({'hitType':'event', 'eventCategory':'behavior', 'eventAction':'join group', 'owner':false, 'groupType':'guild','privacy': joinedGroup.privacy})
}
_.pull(User.user.invitations.guilds, group);
$location.path('/options/groups/guilds/' + joinedGroup._id);
});
}