In rare cases, a group has no members

This commit is contained in:
lilia 2015-03-23 12:01:58 -07:00
parent 5ffa265559
commit 9474b16eba

View file

@ -157,8 +157,9 @@
if (this.isPrivate()) {
this.contactCollection.reset([this]);
} else {
var members = this.get('members') || [];
this.contactCollection.reset(
this.get('members').map(function(number) {
members.map(function(number) {
var c = this.collection.add({id: number, type: 'private'});
c.fetch();
return c;