MessageReceiver: Flow promises back properly in decrypt error case
FREEBIE
This commit is contained in:
parent
31d7e652fe
commit
8c231d9830
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue