-
Notifications
You must be signed in to change notification settings - Fork 76
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(Profile flow): Respond to/review an incoming CR #13794
Conversation
} | ||
onDiscarded: { | ||
// FIXME should call `rootStore.contactStore.dismissContactRequest(publicKey, contactRequestId)` here? | ||
Global.displaySuccessToastMessage(qsTr("Contact request ignored")) |
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.
One question here @MishkaRogachev: here we should just "ignore" the request but all the other popups (ActivityCenter, Settings/Contacts, etc) still call the dismissContactRequest
; so what to do here?
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.
not sure if i get the problem. Maybe add an arg to openPopup(reviewContactRequestPopupComponent, ...
in case ActivityCenter, Settings/Contacts and Profile uses the same component
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.
No, my main question is more about the behavior, whether we should just ignore the CR everywhere, instead of calling the "dismiss" function (depending on what it does internally)
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'm not aware of latest requirements, but i can answer what dismissContactRequest
does:
- mark provided or latest CR as Dismissed
- set contact's
ContactRequestLocalState
as ContactRequestStateDismissed. All subsequent CRs from this contact will not change the contact's status and trigger AC notifications
So my opinion is to use dismissContactRequest
to ignore a contact
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.
Thanks, done
Jenkins Builds
|
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.
LGTM! Very nice storybook flow you've set-up there!
Minor questions inline
- implement the new "Reviewing contact request" popup & flow - adjust storybook Fixes #13519
796f00b
to
2f09802
Compare
What does the PR do
Fixes #13519
Affected areas
ProfileDialogView,ProfileContextMenu
Screenshot of functionality (including design for comparison)