Page MenuHomePhabricator

[native] Update message height measurement logic to handle deleted messages
ClosedPublic

Authored by tomek on Fri, Apr 4, 4:52 AM.
Tags
None
Referenced Files
F6084507: D14546.id47727.diff
Sun, Apr 20, 11:17 PM
F6068353: D14546.id47792.diff
Sun, Apr 20, 12:30 PM
Unknown Object (File)
Fri, Apr 18, 2:36 AM
Unknown Object (File)
Thu, Apr 17, 8:31 PM
Unknown Object (File)
Thu, Apr 17, 4:17 PM
Unknown Object (File)
Thu, Apr 17, 6:00 AM
Unknown Object (File)
Tue, Apr 15, 4:40 PM
Unknown Object (File)
Tue, Apr 15, 3:01 PM
Subscribers
None

Details

Summary

Make sure the deleted message height is computed correctly.

https://linear.app/comm/issue/ENG-10347/make-sure-height-calculation-is-correct

Depends on D14545

Test Plan

Checked if there are no warnings in the console about an invalid height.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 5:11 AM
tomek planned changes to this revision.Fri, Apr 4, 7:01 AM
tomek added inline comments.
native/chat/chat-item-height-measurer.react.js
47–51 ↗(On Diff #47658)

This is probably wrong because a deleted message can be a sidebar source

Consider that a deleted message can be a sidebar source

ashoat added inline comments.
native/chat/chat-item-height-measurer.react.js
95–100 ↗(On Diff #47661)

Is it difficult to do this without rendering <Markdown>? I can see the argument for it if so, but would be helpful to explain

This revision is now accepted and ready to land.Fri, Apr 4, 8:52 AM

Don't use markdown when measuring deleted messages

native/chat/chat-item-height-measurer.react.js
95–100 ↗(On Diff #47661)

It isn't that difficult, and after the recent changes from the parent diffs it is more correct.

I suppose the italics don't change the height