Page MenuHomePhabricator

[lib] Introduce relationship callbacks
ClosedPublic

Authored by tomek on Apr 14 2022, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Oct 21 2024, 1:55 PM
Unknown Object (File)
Oct 20 2024, 10:45 PM
Unknown Object (File)
Oct 20 2024, 10:20 PM

Details

Summary

Create a hook that returns functions that modify the relationship. This hook depends only on userID and onErrorCallback so it's a lot more convenient to use.
Depends on D3733

Test Plan

Send friend request by using relationship prompt and check if the state was updated.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
lib/hooks/relationship-prompt.js
62 ↗(On Diff #11483)

Should we maybe name this otherUserID?

This revision is now accepted and ready to land.Apr 14 2022, 6:26 PM
lib/hooks/relationship-prompt.js
62 ↗(On Diff #11483)

Makes sense!

This revision was landed with ongoing or failed builds.Apr 15 2022, 2:16 AM
This revision was automatically updated to reflect the committed changes.