Ensure that we show error'd recipients in message details screen

This commit is contained in:
Scott Nonnenberg 2019-02-20 11:57:14 -08:00
parent ad53423e0a
commit 41ea9ee15b

View file

@ -629,11 +629,15 @@
return accumulator;
}, 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
// back to the conversation's current recipients
const phoneNumbers = this.isIncoming()
? [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
const allErrors = (this.get('errors') || []).map(error => {