Page MenuHomePhabricator

[native] introduce useSendReaction hook
ClosedPublic

Authored by ginsu on Jan 31 2023, 1:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 5:29 AM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:10 PM
Unknown Object (File)
Apr 17 2024, 2:09 PM
Unknown Object (File)
Apr 17 2024, 1:57 PM
Unknown Object (File)
Mar 28 2024, 6:04 PM
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.