Cleanup PGP PUBLIC KEY handling

This commit is contained in:
the-djmaze 2024-02-20 18:14:32 +01:00
parent 6ce08726b4
commit ca12655e5f
3 changed files with 5 additions and 13 deletions

View file

@ -903,18 +903,8 @@ export class ComposePopupView extends AbstractViewPopup {
let autocrypt = new MimeHeaderAutocryptModel(value);
if (autocrypt.addr && autocrypt.keydata) {
PgpUserStore.hasPublicKeyForEmails([autocrypt.addr]).then(result =>
result || PgpUserStore.importKey(
'-----BEGIN PGP PUBLIC KEY BLOCK-----\n\n'
+ autocrypt.keydata
+ '\n-----END PGP PUBLIC KEY BLOCK-----',
true, true)
/*
result || showScreenPopup(OpenPgpImportPopupView,
['-----BEGIN PGP PUBLIC KEY BLOCK-----\n\n'
+ autocrypt.keydata
+ '\n-----END PGP PUBLIC KEY BLOCK-----']
)
*/
result || PgpUserStore.importKey(autocrypt.pem(), true, true)
// result || showScreenPopup(OpenPgpImportPopupView, [autocrypt.pem()])
);
}
});