Support Internationalized Domain Names in OpenPGP

This commit is contained in:
the-djmaze 2024-03-12 16:20:19 +01:00
parent 696a2bbd3c
commit ca249bcced
3 changed files with 15 additions and 11 deletions

View file

@ -128,12 +128,12 @@ export const
let result = {};
recipients.forEach(email => {
OpenPGPUserStore.publicKeys().forEach(key => {
if (key.emails.includes(email)) {
if (key.for(email)) {
result[email] = key.armor;
}
});
GnuPGUserStore.publicKeys.map(async key => {
if (!result[email] && key.emails.includes(email)) {
if (!result[email] && key.for(email)) {
result[email] = await key.fetch();
}
});