Make it clear in conversation just some recipients failed
FREEBIE
This commit is contained in:
parent
c10e1b4ad0
commit
ff4fde651c
6 changed files with 57 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue