Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #710 from boschresearch/fix/v2credentials-not-disp…
Browse files Browse the repository at this point in the history
…layed-in-wallet

fix v2 credentials not being shown in wallet
  • Loading branch information
etschelp authored Feb 4, 2022
2 parents 26dfe2f + 5d4d458 commit a2f9659
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
file: Dockerfile.run
tags: ${{ steps.preparetags.outputs.tags }}
Original file line number Diff line number Diff line change
Expand Up @@ -556,12 +556,15 @@ public void handleIssueCredentialV2Indy(V2IssueIndyCredentialEvent revocationInf
revocationInfo.getCredRevId());
} else if (bpaEx.roleIsHolder() && StringUtils.isNotEmpty(revocationInfo.getCredIdStored())) {
credExRepo.updateReferent(bpaEx.getId(), revocationInfo.getCredIdStored());
// holder event is missing the credRevId
try {
ac.credential(revocationInfo.getCredIdStored()).ifPresent(
c -> credExRepo.updateRevocationInfo(bpaEx.getId(), c.getRevRegId(), c.getCredRevId()));
} catch (IOException e) {
log.error(msg.getMessage("acapy.unavailable"));
// holder event is missing the credRevId, so get it from aca-py in case the
// credential is revocable
if (StringUtils.isNotEmpty(revocationInfo.getRevRegId())) {
try {
ac.credential(revocationInfo.getCredIdStored()).ifPresent(
c -> credExRepo.updateRevocationInfo(bpaEx.getId(), c.getRevRegId(), c.getCredRevId()));
} catch (IOException e) {
log.error(msg.getMessage("acapy.unavailable"));
}
}
}
});
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/MyCredentialList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ export default {
type === "credential"
? result.data.filter((item) => {
return (
item.state === CredentialExchangeStates.CREDENTIAL_ACKED
item.state ===
CredentialExchangeStates.CREDENTIAL_ACKED ||
item.state === CredentialExchangeStates.DONE
);
})
: result.data;
Expand Down

0 comments on commit a2f9659

Please sign in to comment.