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
F3397711: D8628.id29361.diff
Sun, Dec 1, 7:07 PM
F3397355: D8628.id29032.diff
Sun, Dec 1, 5:19 PM
F3397348: D8628.id29346.diff
Sun, Dec 1, 5:18 PM
Unknown Object (File)
Sat, Nov 23, 6:56 PM
Unknown Object (File)
Sat, Nov 23, 4:23 PM
Unknown Object (File)
Sat, Nov 23, 4:23 PM
Unknown Object (File)
Sat, Nov 2, 3:32 PM
Unknown Object (File)
Oct 28 2024, 5:36 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
No Lint Coverage
Unit
No Test Coverage

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

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.