Page MenuHomePhabricator

[lib] Introduce MessageSpec.mergeIntoPrecedingRobotextMessageItem
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:33 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Wed, Nov 6, 1:15 AM
Unknown Object (File)
Fri, Nov 1, 8:09 AM
Unknown Object (File)
Fri, Nov 1, 2:56 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
Lint Not Applicable
Unit
Tests Not Applicable

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