Page MenuHomePhabricator

[lib/native] update heightMeasurerKey function to consider inline engagement for robotext messages
ClosedPublic

Authored by ginsu on Jul 25 2023, 12:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:52 AM
Unknown Object (File)
Thu, Sep 26, 4:47 AM
Unknown Object (File)
Sun, Sep 15, 11:52 AM
Unknown Object (File)
Sep 3 2024, 3:26 AM
Subscribers

Details

Summary

This next diff updates the heightMeasurerKey function so that we remeasure a message whenever there is a change with the inline engagement for that message. In this diff we want to also consider changes to sidebar text and the reactions since these can all potentially affect the height of the inline engagement node

Depends on D8610

Test Plan

I tested modifying the height of the inline engagement for robotext messages, and when I did this, I no longer got the incorrect height measurement logs from the console

Before:

After:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, kamil, ashoat, tomek.

added @ashoat and @tomek as reviewers since they have the most context on height measurement

tomek added inline comments.
lib/shared/inline-engagement-utils.js
17–18 ↗(On Diff #29032)

We probably don't have good guarantees about iteration order, but it should be fine as we're caring here only about changes in the object.

This revision is now accepted and ready to land.Jul 26 2023, 3:14 AM
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.