Page MenuHomePhabricator

[lib] Introduce MessageSpec.mergeIntoPrecedingRobotextMessageItem
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 8:24 AM
Unknown Object (File)
Fri, Nov 22, 7:51 AM
Unknown Object (File)
Fri, Nov 22, 2:45 AM
Unknown Object (File)
Wed, Nov 20, 9:34 AM
Unknown Object (File)
Sun, Nov 10, 5:32 PM
Unknown Object (File)
Sun, Nov 10, 1:53 PM
Unknown Object (File)
Sun, Nov 10, 5:00 AM
Unknown Object (File)
Thu, Nov 7, 2:35 AM
Subscribers
None

Details

Summary

This function will allow us to merge RobotextMessageInfos into preceding (older) RobotextChatMessageInfoItems.

The merging is implemented on the spec of the newer RobotextChatMessageInfoItem.

Depends on D13686

Test Plan

Tested in combination with the following diffs, where I construct RobotextChatMessageInfoItem with an array of messageInfos to represent combined messages (ENG-9559

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Don't merge messages that have reactions or a sidebar

lib/selectors/chat-selectors.js
521–522 ↗(On Diff #45065)

These checks are superfluous, since only composable messages can be edited or pinned currently

But I figured it wouldn't hurt to check

This revision is now accepted and ready to land.Oct 11 2024, 7:45 AM