Page MenuHomePhabricator

[native] introduce useSendReaction hook
ClosedPublic

Authored by ginsu on Jan 31 2023, 1:05 PM.
Tags
None
Referenced Files
F3489145: D6487.diff
Wed, Dec 18, 11:43 AM
Unknown Object (File)
Tue, Dec 3, 3:32 AM
Unknown Object (File)
Nov 15 2024, 9:48 PM
Unknown Object (File)
Nov 15 2024, 8:07 PM
Unknown Object (File)
Nov 15 2024, 7:39 PM
Unknown Object (File)
Nov 8 2024, 3:31 AM
Unknown Object (File)
Nov 8 2024, 3:31 AM
Unknown Object (File)
Nov 8 2024, 3:31 AM
Subscribers

Details

Summary

introduce useSendReaction hook. This hook will eventually be used in the following files

  1. native/chat/text-message-tooltip-button.react
  2. native/chat/multimedia-message-tooltip-button.react
  3. native/chat/robotext-message-tooltip-button.react.

This hook will also eventually replace onPressReact and sendReaction in reaction-message-utils; however, it is not safe to remove it yet because the like button in the tooltip still calls these functions, but we will address this in a subsequent diff


Depends on D6453
Linear Task: ENG-2779

Test Plan

flow and this diff will be further tested in subsequent diffs

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Jan 31 2023, 1:30 PM
This revision is now accepted and ready to land.Feb 1 2023, 2:43 AM

rebase for changes needed in D6455

This revision was automatically updated to reflect the committed changes.