Handle attachment upload errors
Adds a new kind of replayable error that handles retry of pre-encryption failures, e.g., attachment upload. Fixes #485 // FREEBIE
This commit is contained in:
parent
910e37649a
commit
7e82d1295c
5 changed files with 64 additions and 17 deletions
|
@ -212,7 +212,8 @@
|
|||
removeOutgoingErrors: function(number) {
|
||||
var errors = _.partition(this.get('errors'), function(e) {
|
||||
return e.number === number &&
|
||||
(e.name === 'OutgoingMessageError' ||
|
||||
(e.name === 'MessageError' ||
|
||||
e.name === 'OutgoingMessageError' ||
|
||||
e.name === 'SendMessageNetworkError');
|
||||
});
|
||||
this.set({errors: errors[1]});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue