Page MenuHomePhabricator

[native] update dummyNodeForTextMessageHeightMeasurement to use dummy inline engagement component
ClosedPublic

Authored by ginsu on Jul 25 2023, 1:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 6:57 PM
Unknown Object (File)
Sat, Nov 23, 6:57 PM
Unknown Object (File)
Sat, Nov 23, 6:56 PM
Unknown Object (File)
Fri, Nov 1, 2:06 PM
Unknown Object (File)
Mon, Oct 28, 5:36 AM
Unknown Object (File)
Oct 7 2024, 9:45 AM
Unknown Object (File)
Oct 7 2024, 9:45 AM
Unknown Object (File)
Oct 7 2024, 12:40 AM
Subscribers

Details

Summary

This diff adds the dummy inline engagement component to the text message dummy node, so that we can correctly measure text messages with an inline engagement. A subsequent diff will handle updating the heightMeasurerKey for text messages

Depends on D8629

Test Plan

Confirmed that the incorrect height measurement log was no longer in the console. Also double checked in the inspector that I was getting the correct height measurements for both dummy nodes

Before:

Screenshot 2023-07-25 at 3.53.31 PM.png (1×3 px, 1 MB)

After:

Screenshot 2023-07-25 at 4.30.32 PM.png (1×3 px, 1 MB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Jul 25 2023, 1:56 PM
tomek added inline comments.
native/chat/inner-text-message.react.js
40 ↗(On Diff #29034)

Should we apply some styles to this View?

native/chat/utils.js
81–88 ↗(On Diff #29034)

Do we still need these constants?

This revision is now accepted and ready to land.Jul 26 2023, 3:21 AM
native/chat/inner-text-message.react.js
40 ↗(On Diff #29034)

Here is an explanation for why I added the View here:

https://phab.comm.dev/D8610#inline-55215

native/chat/utils.js
81–88 ↗(On Diff #29034)

These constants are still used, but in D8634 we do remove the unused constants here

This revision was landed with ongoing or failed builds.Jul 31 2023, 1:19 PM
This revision was automatically updated to reflect the committed changes.