(tag, keys)
| 38 | } |
| 39 | |
| 40 | function tagToRecipient(tag, keys) { |
| 41 | if (!tag || !tag.id) { |
| 42 | return; |
| 43 | } |
| 44 | const recipient = {email: tag.id, displayId: tag.id}; |
| 45 | const key = findKeyByEmail(keys, recipient.email); |
| 46 | if (key) { |
| 47 | recipient.key = key; |
| 48 | recipient.fingerprint = key.fingerprint; |
| 49 | } else { |
| 50 | recipient.checkServer = true; |
| 51 | recipient.lookupPending = true; |
| 52 | } |
| 53 | return recipient; |
| 54 | } |
| 55 | |
| 56 | export function RecipientInput({extraKey, hideErrorMsg, keys, recipients, onChangeRecipients}) { |
| 57 | const idRef = useRef(getUUID()); |
no test coverage detected