Skip to content

Commit

Permalink
Only considering self-signed identities for primary identities
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Mar 31, 2013
1 parent d8ac2d4 commit 855c260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyring.js
Expand Up @@ -844,7 +844,7 @@ Keyring.prototype = {

if(keyInfo.primary_identity != null)
{
this.getIdentity(keyId, keyInfo.primary_identity, p(this, function(err, identityInfo) {
this.getSelfSignedIdentity(keyId, keyInfo.primary_identity, p(this, function(err, identityInfo) {
if(err)
return callback(err);
else if(identityInfo == null)
Expand All @@ -858,7 +858,7 @@ Keyring.prototype = {

function findOther() {
// TODO: Read only one
this.getIdentities(keyId, null, fields).forEachSeries(p(this, function(identityInfo, next) {
this.getSelfSignedIdentities(keyId, null, fields).forEachSeries(p(this, function(identityInfo, next) {
callback(null, identityInfo);
}), function(err) {
callback(err, null);
Expand Down

0 comments on commit 855c260

Please sign in to comment.