diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index be6b011ed..f14cf8c2c 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -675,8 +675,7 @@ export class MailMessageView extends AbstractViewRight { pgpDecrypt(self) { const message = self.message(); message && PgpUserStore.decrypt(message).then(result => { -console.dir({decrypt_result:result}); - if (result) { + if (result && result.data) { mimeToMessage(result.data, message); } }); diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php index 2e9ff6037..1f7ef39bd 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Pgp.php @@ -93,7 +93,6 @@ trait Pgp // $result['signatures'] = $oPart->SubParts[0]; } -// return $this->DefaultResponse(__FUNCTION__, $oPart); return $this->DefaultResponse(__FUNCTION__, $result); }