mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
Dont show error popup on pgp decrypt error
This commit is contained in:
parent
a97c3a35e7
commit
2a1a92f907
@ -414,10 +414,8 @@ define(function(require) {
|
||||
var encryptedNode = self._emailSync.filterBodyParts(message.bodyParts, 'encrypted')[0];
|
||||
self._crypto.decrypt(encryptedNode.content, senderPublicKey.publicKey, function(err, decrypted) {
|
||||
if (err || !decrypted) {
|
||||
err = err || {
|
||||
errMsg: 'Error occurred during decryption'
|
||||
};
|
||||
done(err);
|
||||
message.body = err.errMsg || err.message;
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user