Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 4365892

Browse files
author
the-djmaze
committed
Resolve #1589
1 parent 4ad2518 commit 4365892

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dev/View/Popup/Compose.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,10 +914,9 @@ export class ComposePopupView extends AbstractViewPopup {
914914
oLastMessage.headers().valuesByName('autocrypt').forEach(value => {
915915
let autocrypt = new MimeHeaderAutocryptModel(value);
916916
if (autocrypt.addr && autocrypt.keydata) {
917-
PgpUserStore.hasPublicKeyForEmails([autocrypt.addr]).then(result =>
918-
result || PgpUserStore.importKey(autocrypt.pem(), true, true)
919-
// result || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()])
920-
);
917+
PgpUserStore.hasPublicKeyForEmails([autocrypt.addr])
918+
|| PgpUserStore.importKey(autocrypt.pem(), true, true)
919+
// || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()])
921920
}
922921
});
923922
} break;

0 commit comments

Comments
 (0)