Page MenuHomePhabricator

[lib] Introduce relationship callbacks
ClosedPublic

Authored by tomek on Apr 14 2022, 11:42 AM.
Tags
None
Referenced Files
F3393485: D3734.id11506.diff
Sat, Nov 30, 2:24 PM
F3393209: D3734.diff
Sat, Nov 30, 12:31 PM
Unknown Object (File)
Wed, Nov 27, 7:57 PM
Unknown Object (File)
Wed, Nov 27, 7:45 PM
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

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.