Skip to content

Commit

Permalink
Resolve #1589
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed May 21, 2024
1 parent 4ad2518 commit 4365892
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dev/View/Popup/Compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4365892

Please sign in to comment.