Page MenuHomePhabricator

[lib] Introduce relationship callbacks
ClosedPublic

Authored by tomek on Apr 14 2022, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 1:09 AM
Unknown Object (File)
Fri, Sep 27, 1:09 AM
Unknown Object (File)
Fri, Sep 27, 1:09 AM
Unknown Object (File)
Fri, Sep 27, 1:09 AM
Unknown Object (File)
Fri, Sep 27, 1:08 AM
Unknown Object (File)
Tue, Sep 24, 5:15 PM
Unknown Object (File)
Tue, Sep 24, 5:14 PM
Unknown Object (File)
Tue, Sep 24, 5:14 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
lib/hooks/relationship-prompt.js
62

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

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.