Message: Ensure that change event always has getReduxData() data
This commit is contained in:
parent
a8a8d65e5b
commit
ca43f52151
1 changed files with 3 additions and 4 deletions
|
@ -109,7 +109,7 @@
|
||||||
if (messageChanged) {
|
if (messageChanged) {
|
||||||
const conversationId = this.get('conversationId');
|
const conversationId = this.get('conversationId');
|
||||||
// Note: The clone is important for triggering a re-run of selectors
|
// Note: The clone is important for triggering a re-run of selectors
|
||||||
messageChanged(this.id, conversationId, _.clone(this.attributes));
|
messageChanged(this.id, conversationId, this.getReduxData());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -580,14 +580,13 @@
|
||||||
return 'sending';
|
return 'sending';
|
||||||
},
|
},
|
||||||
getPropsForEmbeddedContact() {
|
getPropsForEmbeddedContact() {
|
||||||
const regionCode = storage.get('regionCode');
|
|
||||||
const { contactSelector } = Contact;
|
|
||||||
|
|
||||||
const contacts = this.get('contact');
|
const contacts = this.get('contact');
|
||||||
if (!contacts || !contacts.length) {
|
if (!contacts || !contacts.length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const regionCode = storage.get('regionCode');
|
||||||
|
const { contactSelector } = Contact;
|
||||||
const contact = contacts[0];
|
const contact = contacts[0];
|
||||||
const firstNumber =
|
const firstNumber =
|
||||||
contact.number && contact.number[0] && contact.number[0].value;
|
contact.number && contact.number[0] && contact.number[0].value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue