Skip to content

pgp_pubkey cannot handle more than one key, but appears it can #4373

Description

@tomholub

pgp_pubkey acts as if it can handle several keys by using an array, but in fact it's impossible for there to be more than one key in the array, as written:

publicrender=async()=>{Ui.event.protect();try{constpubKey=awaitKeyUtil.parse(this.armoredPubkey);this.isExpired=KeyUtil.expired(pubKey);if(pubKey.revoked){awaitContactStore.saveRevocation(undefined,pubKey);}this.parsedPublicKeys=[pubKey];}catch(e){console.error('Unusable key: '+e);this.parsedPublicKeys=[];}this.firstParsedPublicKey=this.parsedPublicKeys ? this.parsedPublicKeys[0] : undefined;$('.pubkey').text(this.armoredPubkey);if(this.compact){$('.hide_if_compact').remove();$('body').css({border: 'none',padding: 0});$('.line').removeClass('line');}

the array can have maximum of 1 element. It's odd

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions