mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
update memberCount & typo
This commit is contained in:
@@ -172,9 +172,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
||||
// remove user from group members if guild is public so that he can re-join it immediately
|
||||
if(group.privacy == 'public'){
|
||||
// slow when a lot of members...? probably yes
|
||||
group.members = _.without(group.members, function(member){
|
||||
member._id !== User.user._id;
|
||||
});
|
||||
group.members = _.without(group.members, member);
|
||||
group.memberCount--;
|
||||
}
|
||||
$state.go('options.social.guilds');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user