Fix crash in message detail view
Fix crash when there's no contact for a group member.
This commit is contained in:
parent
e8cb4efaa4
commit
923bb8bbc9
1 changed files with 3 additions and 2 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue