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
F3397313: D8630.id29348.diff
Sun, Dec 1, 5:13 PM
Unknown Object (File)
Fri, Nov 29, 2:44 PM
Unknown Object (File)
Tue, Nov 26, 1:21 AM
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)
Nov 1 2024, 2:06 PM
Unknown Object (File)
Oct 28 2024, 5:36 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.