From 4365892927b2819ce14c4976b73deb1246302d09 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 21 May 2024 18:08:04 +0200 Subject: [PATCH] Resolve #1589 --- dev/View/Popup/Compose.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dev/View/Popup/Compose.js b/dev/View/Popup/Compose.js index ac774d725..fbb7611a8 100644 --- a/dev/View/Popup/Compose.js +++ b/dev/View/Popup/Compose.js @@ -914,10 +914,9 @@ export class ComposePopupView extends AbstractViewPopup { oLastMessage.headers().valuesByName('autocrypt').forEach(value => { let autocrypt = new MimeHeaderAutocryptModel(value); if (autocrypt.addr && autocrypt.keydata) { - PgpUserStore.hasPublicKeyForEmails([autocrypt.addr]).then(result => - result || PgpUserStore.importKey(autocrypt.pem(), true, true) -// result || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()]) - ); + PgpUserStore.hasPublicKeyForEmails([autocrypt.addr]) + || PgpUserStore.importKey(autocrypt.pem(), true, true) +// || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()]) } }); } break;