HomePhabricator
Diffusion Comm e2aaf9df7997

[web][native] update `useSendReaction` to send DMs reactions

Description

[web][native] update useSendReaction to send DMs reactions

Summary:
ENG-8975

We could consider moving this to shared code in lib but at this point, I don't think it worth adding another abstraction layer. For other ops, logic could be specific and different. After implementing other DM ops we can see what can be extracted.

Depends on D13173

Test Plan:

  1. Create DM thread.
  2. Send reaction.
  3. See if this is visible on all peers.
  4. Turn off internet connection and send reaction (should not fail).
  5. Turn on internet connection, reaction visible is for on all peers.

Reviewers: tomek, inka

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13174

Details