Fix message detail contacts for incoming group message
Previously the From-field displayed all the group contacts.
This commit is contained in:
parent
bd82591b6c
commit
48b0e8832d
1 changed files with 10 additions and 2 deletions
|
@ -99,12 +99,20 @@
|
||||||
}));
|
}));
|
||||||
this.view.render().$el.prependTo(this.$el.find('.message-container'));
|
this.view.render().$el.prependTo(this.$el.find('.message-container'));
|
||||||
|
|
||||||
|
if (this.model.isOutgoing()) {
|
||||||
this.conversation.contactCollection.each(function(contact) {
|
this.conversation.contactCollection.each(function(contact) {
|
||||||
var v = new ContactView({
|
var v = new ContactView({
|
||||||
model: contact,
|
model: contact,
|
||||||
conflict: this.model.getKeyConflict(contact.id)
|
conflict: this.model.getKeyConflict(contact.id)
|
||||||
}).render().$el.appendTo(this.$el.find('.contacts'));
|
}).render().$el.appendTo(this.$el.find('.contacts'));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
} else {
|
||||||
|
var contact = this.conversation.contactCollection.get(this.model.get('source'));
|
||||||
|
var v = new ContactView({
|
||||||
|
model: contact,
|
||||||
|
conflict: this.model.getKeyConflict(contact.id)
|
||||||
|
}).render().$el.appendTo(this.$el.find('.contacts'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue