mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-06 17:11:24 +00:00
Merge pull request #520 from openpgpjs/fix_519
Fixes the typo addressed in #519
This commit is contained in:
@@ -358,7 +358,7 @@ Key.prototype.getEncryptionKeyPacket = function() {
|
||||
}
|
||||
// if no valid subkey for encryption, evaluate primary key
|
||||
var primaryUser = this.getPrimaryUser();
|
||||
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired &&
|
||||
if (primaryUser && primaryUser.selfCertificate && !primaryUser.selfCertificate.isExpired() &&
|
||||
isValidEncryptionKeyPacket(this.primaryKey, primaryUser.selfCertificate)) {
|
||||
return this.primaryKey;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user