HomePhabricator
Diffusion Comm 6548f0c2f805

[native] [refactor] use toggle unread hook

Description

[native] [refactor] use toggle unread hook

Summary:
Use useToggleUnreadStatus hook, remove old API call logic.

Screen Recording 2022-03-15 at 12.47.05 PM.gif (851×407 px, 3 MB)

Test Plan:
Go to the simulator:

  • Read and unread chat thread items.
  • Make sure animations are still smooth.
  • Go to web client and API call (that toggling read and unread) is still reflected on both native client and web client.

Reviewers: atul, ashoat

Reviewed By: ashoat

Subscribers: palys-swm, Adrian, karol-bisztyga

Differential Revision: https://phabricator.ashoat.com/D3419

Details

Provenance
benschacAuthored on Mar 15 2022, 8:41 AM
Reviewer
ashoat
Differential Revision
D3419: [native] [refactor] use toggle unread hook
Parents
rCOMMec9b4fe9e731: [web] [refactor] move use unread into its own hook
Branches
Unknown
Tags
Unknown