In rare cases, a group has no members

pull/749/head
lilia 10 years ago
parent 5ffa265559
commit 9474b16eba

@ -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;

Loading…
Cancel
Save