Removing accepted guild invitations from the local copy of the user object so the notification goes away without having to refresh. #7600

This commit is contained in:
Husman
2016-06-12 15:59:59 -07:00
parent 345a736c27
commit 4a3e0eb884

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);
});
}