HomePhabricator
Diffusion Comm 463bca6ba7c7

[native] Use getMessagePreview in native MessagePreview

Description

[native] Use getMessagePreview in native MessagePreview

Summary:
After D6357 updated getMessagePreview to return a style for each portion, we can update native to use that function to unify codepaths with web.

This should be a no-op. Compare to web's version of MessagePreview in D6358 – very similar code.

Depends on D6359

Test Plan:

beforeafter
Screenshot 2023-01-23 at 5.47.44 PM.png (2×1 px, 936 KB)
Screenshot 2023-01-23 at 5.47.29 PM.png (2×1 px, 936 KB)

(should be identical)

Reviewers: inka, ginsu, atul, tomek

Reviewed By: atul

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

Details

Provenance
ashoatAuthored on Jan 23 2023, 2:48 PM
Reviewer
atul
Differential Revision
D6360: [native] Use getMessagePreview in native MessagePreview
Parents
rCOMM8ddbe5330bb6: [web] Use shades-black-70 for thread-preview-secondary
Branches
Unknown
Tags
Unknown