Page MenuHomePhabricator

[lib] Introduce MessageSpec.mergeIntoPrecedingRobotextMessageItem
ClosedPublic

Authored by ashoat on Oct 9 2024, 8:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 15, 3:17 AM
Unknown Object (File)
Feb 17 2025, 10:51 AM
Unknown Object (File)
Feb 17 2025, 10:50 AM
Unknown Object (File)
Feb 17 2025, 10:50 AM
Unknown Object (File)
Jan 29 2025, 1:31 PM
Unknown Object (File)
Jan 28 2025, 7:45 PM
Unknown Object (File)
Jan 28 2025, 7:45 PM
Unknown Object (File)
Jan 28 2025, 7:45 PM
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