-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Decline problem report #99
Conversation
Signed-off-by: Tom Lanser <tom@devv.nl>
Signed-off-by: Tom Lanser <tom@devv.nl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! How about credential decline?
mutationKey: ['declineDidCommPresentation', proofExchangeId], | ||
mutationFn: async () => { | ||
const presentationDeclined$ = agent.events | ||
.observable<ProofStateChangedEvent>(ProofEventTypes.ProofStateChanged) | ||
.pipe( | ||
// Correct record with id and state | ||
filter( | ||
(event) => | ||
event.payload.proofRecord.id === proofExchangeId && | ||
[ProofState.Declined].includes(event.payload.proofRecord.state) | ||
), | ||
// 10 seconds to complete exchange | ||
timeout(10000), | ||
first() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the method call will wait with returning until this state is reached, so i think we can remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it's quite nice to have this functionality right just like the accept action. And the state is updated locally in afj right for the record or does it have to wait for the external party?
Yes, added the credential decline now 😄 |
Signed-off-by: Tom Lanser <tom@devv.nl>
Implementation for the decline problem report in the Paradym wallet.