mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
#89 OpenPGP.js encrypt (+ verify)
This commit is contained in:
parent
6b2311663b
commit
73fa215e22
7 changed files with 126 additions and 53 deletions
|
|
@ -74,14 +74,14 @@ export const PgpUserStore = new class {
|
|||
async hasPublicKeyForEmails(recipients, all) {
|
||||
const count = recipients.length;
|
||||
if (count) {
|
||||
if (GnuPGUserStore.hasPublicKeyForEmails(recipients, all)) {
|
||||
return 'gnupg';
|
||||
}
|
||||
|
||||
if (OpenPGPUserStore.hasPublicKeyForEmails(recipients, all)) {
|
||||
return 'openpgp';
|
||||
}
|
||||
|
||||
if (GnuPGUserStore.hasPublicKeyForEmails(recipients, all)) {
|
||||
return 'gnupg';
|
||||
}
|
||||
|
||||
let keyring = this.mailvelopeKeyring,
|
||||
mailvelope = keyring && await keyring.validKeyForAddress(recipients)
|
||||
/*.then(LookupResult => Object.entries(LookupResult))*/;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue