MessageReceiver: Flow promises back properly in decrypt error case

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-27 10:03:21 -07:00
parent 31d7e652fe
commit 8c231d9830
2 changed files with 2 additions and 2 deletions

View file

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

View file

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