HomePhabricator
Diffusion Comm cc0f712c74ba

[lib] Return style of text from getMessagePreview

Description

[lib] Return style of text from getMessagePreview

Summary:
I noticed that native/chat/message-preview.react.js wasn't using getMessagePreview, even though much of the logic was the same.

I wanted to unify the codepaths, but there is was one thing that native needed that wasn't being returned by getMessagePreview: what style to render each of the parts as.

I also noticed that web was rendering styles slightly different that native, which will be fixed in the next diff. This diff doesn't actually use the newly-returned style field... it just updates the code to return it.

Test Plan: Tested in combo with following diffs

Reviewers: inka, ginsu, atul, tomek

Reviewed By: inka

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

Details

Provenance
ashoatAuthored on Jan 23 2023, 12:31 PM
Reviewer
inka
Differential Revision
D6357: [lib] Return style of text from getMessagePreview
Parents
rCOMMb0c1ad95d9ca: [native] implement new InlineEngagement design
Branches
Unknown
Tags
Unknown