1
0
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:
Tankred Hase 2014-05-12 13:26:11 +02:00
parent a97c3a35e7
commit 2a1a92f907

View File

@ -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;
}