Mark messages sent after resolving outgoing key conflicts

This commit is contained in:
lilia 2015-07-09 11:31:43 -07:00
parent 82de8148d2
commit b44c12807c

View file

@ -114,10 +114,11 @@
}.bind(this));
} else {
promise.then(function() {
this.save('errors', _.reject(this.get('errors'), function(e) {
var errors = _.reject(this.get('errors'), function(e) {
return e.name === 'OutgoingIdentityKeyError' &&
e.number === number;
}));
});
this.save({sent: true, errors: errors});
}.bind(this));
}
}