mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
update memberCount & typo
This commit is contained in:
parent
f7dba5f323
commit
03b945d755
1 changed files with 2 additions and 3 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue