Fix call to reloadDevicesAndSend - it returns a function

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-23 15:43:45 -07:00
parent f414c13220
commit 5d1150e5bc
2 changed files with 2 additions and 6 deletions

View file

@ -38914,9 +38914,7 @@ OutgoingMessage.prototype = {
return p.then(function() {
var resetDevices = ((error.code == 410) ? error.response.staleDevices : error.response.missingDevices);
return this.getKeysForNumber(number, resetDevices)
.then(function() {
return this.reloadDevicesAndSend(number, error.code == 409);
}.bind(this));
.then(this.reloadDevicesAndSend(number, error.code == 409));
}.bind(this));
} else if (error.message === "Identity key changed") {
error.timestamp = this.timestamp;

View file

@ -169,9 +169,7 @@ OutgoingMessage.prototype = {
return p.then(function() {
var resetDevices = ((error.code == 410) ? error.response.staleDevices : error.response.missingDevices);
return this.getKeysForNumber(number, resetDevices)
.then(function() {
return this.reloadDevicesAndSend(number, error.code == 409);
}.bind(this));
.then(this.reloadDevicesAndSend(number, error.code == 409));
}.bind(this));
} else if (error.message === "Identity key changed") {
error.timestamp = this.timestamp;