Make it clear in conversation just some recipients failed

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-03 16:46:39 -07:00
parent c10e1b4ad0
commit ff4fde651c
6 changed files with 57 additions and 5 deletions

View file

@ -249,6 +249,25 @@
}.bind(this));
},
someRecipientsFailed: function() {
var c = this.getConversation();
if (c.isPrivate()) {
return false;
}
var recipients = c.contactCollection.length - 1;
var errors = this.get('errors');
if (!errors) {
return false;
}
if (errors.length > 0 && recipients > 0 && errors.length < recipients) {
return true;
}
return false;
},
sendSyncMessage: function() {
this.syncPromise = this.syncPromise || Promise.resolve();
this.syncPromise = this.syncPromise.then(function() {