Ensure that we show error'd recipients in message details screen
This commit is contained in:
parent
ad53423e0a
commit
41ea9ee15b
1 changed files with 5 additions and 1 deletions
|
@ -629,11 +629,15 @@
|
||||||
return accumulator;
|
return accumulator;
|
||||||
}, Object.create(null));
|
}, Object.create(null));
|
||||||
|
|
||||||
|
// We include numbers we didn't successfully send to so we can display errors.
|
||||||
// Older messages don't have the recipients included on the message, so we fall
|
// Older messages don't have the recipients included on the message, so we fall
|
||||||
// back to the conversation's current recipients
|
// back to the conversation's current recipients
|
||||||
const phoneNumbers = this.isIncoming()
|
const phoneNumbers = this.isIncoming()
|
||||||
? [this.get('source')]
|
? [this.get('source')]
|
||||||
: this.get('sent_to') || this.getConversation().getRecipients();
|
: _.union(
|
||||||
|
this.get('sent_to') || [],
|
||||||
|
this.get('recipients') || this.getConversation().getRecipients()
|
||||||
|
);
|
||||||
|
|
||||||
// This will make the error message for outgoing key errors a bit nicer
|
// This will make the error message for outgoing key errors a bit nicer
|
||||||
const allErrors = (this.get('errors') || []).map(error => {
|
const allErrors = (this.get('errors') || []).map(error => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue