Fix call to reloadDevicesAndSend - it returns a function
FREEBIE
This commit is contained in:
parent
f414c13220
commit
5d1150e5bc
2 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue