MessageReceiver: Flow promises back properly in decrypt error case
FREEBIE
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user