HomePhabricator
Diffusion Comm 67fa19c53f1d

[native] Maintain the revealed state of spoilers

Description

[native] Maintain the revealed state of spoilers

Summary:
This diff handles storing the spoiler reveal state so when a user taps on a message once the spoiler is revealed, it won't "re-hide" (the behavior that is present further down in this stack). With this diff, we can now keep track of what spoilers are revealed and what spoilers are still hidden, and the style of the Text component changes once a user reveals the spoiler.

ENG-2072: https://linear.app/comm/issue/ENG-2072/maintain-the-spoiler-state-upon-opening-textmessagetooltipmodal

Depends on D5515

Test Plan:
Create a chat with two separate text messages, each with their own spoilers. The main test is to check whether the spoiler "reveal" state is maintained when the tooltip appears.

Reviewers: atul, ginsu, ashoat

Reviewed By: atul, ashoat

Subscribers: michal, ashoat, tomek, abosh

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

Details

Provenance
rohanAuthored on Nov 30 2022, 3:45 PM
Reviewer
atul
Differential Revision
D5539: [native] Maintain the revealed state of spoilers
Parents
rCOMM5a960aae8d94: [native] Update the existing Context API for Markdown to encompass AppNavigator
Branches
Unknown
Tags
Unknown