Page MenuHomePhabricator

[lib] Introduce MessageSpec.mergeIntoPrecedingRobotextMessageItem
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 11:31 PM
Unknown Object (File)
Nov 22 2024, 8:24 AM
Unknown Object (File)
Nov 22 2024, 7:51 AM
Unknown Object (File)
Nov 22 2024, 2:45 AM
Unknown Object (File)
Nov 20 2024, 9:34 AM
Unknown Object (File)
Nov 10 2024, 5:32 PM
Unknown Object (File)
Nov 10 2024, 1:53 PM
Unknown Object (File)
Nov 10 2024, 5:00 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