Page MenuHomePhabricator

[native] Introduce TextMessageMarkdownContext
ClosedPublic

Authored by ashoat on Nov 29 2022, 7:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 31, 9:17 AM
Unknown Object (File)
Sun, Mar 31, 9:17 AM
Unknown Object (File)
Sun, Mar 31, 9:17 AM
Unknown Object (File)
Sun, Mar 31, 9:08 AM
Unknown Object (File)
Mar 7 2024, 4:31 PM
Unknown Object (File)
Mar 5 2024, 1:21 AM
Unknown Object (File)
Mar 4 2024, 8:30 PM
Unknown Object (File)
Feb 18 2024, 3:10 AM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat added inline comments.
native/chat/text-message-markdown-context.js
17 ↗(On Diff #18959)

Prettier seems to force this long line unfortunately

Setting up the parser seems consistent with the existing markdown code - I assume TextMessageMarkdownContext will replace MessageContext from D5515? I.e. MarkdownSpoiler will rebase these changes and then retrieve the messageKey from this instead

This revision is now accepted and ready to land.Nov 30 2022, 9:18 AM