-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Start end approval flows #1394
Start end approval flows #1394
Conversation
this.update((draftState) => { | ||
draftState.pendingApprovals = {}; | ||
draftState.pendingApprovalCount = 0; | ||
}); |
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.
This has to do with mobile, since I couldn't find any instances of clear
within the extension or snaps code.
When requesting a user approval in mobile, ApprovalController.clear()
is called to remove all pending approvals.
If we don't stop it from clearing approval flows, it will also stop them in between approvals.
Other alternatives include an option in the requestUserApproval
function to stop calling clear
at will (defaulting to the current behaviour).
Description
Adds methods to start and end an approval flow.
Changes
startFlow
andendFlow
methods toApprovalController
.References
Checklist