Skip to content
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

Merged
merged 3 commits into from
Apr 12, 2024
Merged

Conversation

Tommylans
Copy link
Member

Implementation for the decline problem report in the Paradym wallet.

Signed-off-by: Tom Lanser <tom@devv.nl>
Signed-off-by: Tom Lanser <tom@devv.nl>
Copy link
Member

@TimoGlastra TimoGlastra left a 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?

Comment on lines +161 to +174
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()
Copy link
Member

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

Copy link
Member Author

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?

@Tommylans
Copy link
Member Author

Nice! How about credential decline?

Yes, added the credential decline now 😄

Signed-off-by: Tom Lanser <tom@devv.nl>
@Tommylans Tommylans merged commit 791415e into main Apr 12, 2024
1 check passed
@Tommylans Tommylans deleted the feature/decline-problem-report branch April 12, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants