Fix crash in message detail view

Fix crash when there's no contact for a group member.
This commit is contained in:
lilia 2015-03-24 11:36:41 -07:00
parent e8cb4efaa4
commit 923bb8bbc9

View file

@ -107,10 +107,11 @@
}).render().$el.appendTo(this.$el.find('.contacts'));
}.bind(this));
} else {
var contact = this.conversation.contactCollection.get(this.model.get('source'));
var number = this.model.get('source');
var contact = this.conversation.contactCollection.get(number);
var v = new ContactView({
model: contact,
conflict: this.model.getKeyConflict(contact.id)
conflict: this.model.getKeyConflict(number)
}).render().$el.appendTo(this.$el.find('.contacts'));
}
}