MessageReceiver: Flow promises back properly in decrypt error case

FREEBIE
pull/749/head
Scott Nonnenberg 8 years ago
parent 31d7e652fe
commit 8c231d9830

@ -38606,7 +38606,7 @@ MessageReceiver.prototype.extend({
var returnError = function() {
return Promise.reject(error);
};
this.dispatchAndWait(ev).then(returnError, returnError);
return this.dispatchAndWait(ev).then(returnError, returnError);
}.bind(this));
},
decryptPreKeyWhisperMessage: function(ciphertext, sessionCipher, address) {

@ -364,7 +364,7 @@ MessageReceiver.prototype.extend({
var returnError = function() {
return Promise.reject(error);
};
this.dispatchAndWait(ev).then(returnError, returnError);
return this.dispatchAndWait(ev).then(returnError, returnError);
}.bind(this));
},
decryptPreKeyWhisperMessage: function(ciphertext, sessionCipher, address) {

Loading…
Cancel
Save