fix: ignore OpenPGP users without userId

This commit is contained in:
Yarmo Mackenbach 2023-09-17 11:39:00 +02:00
parent 0dfb0bc38a
commit 09b052c7b9
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Fixed
- Ignore OpenPGP users without userId
## [1.0.0] - 2023-07-13 ## [1.0.0] - 2023-07-13
### Changed ### Changed

View file

@ -292,6 +292,8 @@ export async function parsePublicKey (publicKey) {
const personas = [] const personas = []
users.forEach((user, i) => { users.forEach((user, i) => {
if (!user.userID) return
const pe = new Persona(user.userID.name, []) const pe = new Persona(user.userID.name, [])
pe.setIdentifier(user.userID.userID) pe.setIdentifier(user.userID.userID)
pe.setDescription(user.userID.comment) pe.setDescription(user.userID.comment)