Commit 192c48c6 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix new message for no-attribute disclosures

parent d02771dd
...@@ -518,6 +518,9 @@ func (client *Client) groupCredentials(choice *irma.DisclosureChoice, disjunctio ...@@ -518,6 +518,9 @@ func (client *Client) groupCredentials(choice *irma.DisclosureChoice, disjunctio
} }
if identifier.IsCredential() { if identifier.IsCredential() {
attributeIndices[i] = []*irma.DisclosedAttributeIndex{
{AttributeIndex: 1, Identifier: ici},
}
continue // In this case we only disclose the metadata attribute, which is already handled continue // In this case we only disclose the metadata attribute, which is already handled
} }
index, err := client.Configuration.CredentialTypes[identifier.CredentialTypeIdentifier()].IndexOf(identifier) index, err := client.Configuration.CredentialTypes[identifier.CredentialTypeIdentifier()].IndexOf(identifier)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment