diff --git a/src/groups.js b/src/groups.js index 4dd4f69a5d..bc5a3b3c49 100644 --- a/src/groups.js +++ b/src/groups.js @@ -203,6 +203,7 @@ var groupData = { name: name, + userTitle: name, description: description, deleted: '0', hidden: '0', @@ -345,11 +346,10 @@ db.getObjectsFields(groupKeys, ['name', 'hidden', 'userTitle', 'icon', 'labelColor'], function(err, groupData) { groupData = groupData.filter(function(group) { - return parseInt(group.hidden, 10) !== 1; + return parseInt(group.hidden, 10) !== 1 && !!group.userTitle; }); var groupSets = groupData.map(function(group) { - group.userTitle = group.userTitle || group.name; group.labelColor = group.labelColor || '#000000'; return 'group:' + group.name + ':members'; });