HomePhabricator
Diffusion Comm cad6ae6523f2

[native] Introduce TextMessageMarkdownContext

Description

[native] Introduce TextMessageMarkdownContext

Summary: We need the AST from inside InnerTextMessage in order to determine whether the Markdown has any "pressables" (link or spoiler for now, but @mention in the future).

Test Plan: Flow, tested with following diff

Reviewers: rohan, atul, ginsu, michal

Reviewed By: rohan

Subscribers: tomek

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

Details

Provenance
ashoatAuthored on Nov 24 2022, 8:05 AM
Reviewer
rohan
Differential Revision
D5754: [native] Introduce TextMessageMarkdownContext
Parents
rCOMM6dd336abfbb6: [native] Move useTextMessageMarkdownRules to message-list-types.js
Branches
Unknown
Tags
Unknown