create For Preview
Creates a display-only Message from a ai.nexconn.chat.message.model.CombineMsgItem for rendering in the combine-forward preview page.
The returned message is not persisted and has no valid message ID.
Return
A Message ready for display, or null if item.content is absent.
Parameters
item
A single item from CombineMessage.msgList.
current User Id
Current user's ID, used to determine send/receive direction.
public final Message createForPreview(CombineMsgItem item, String currentUserId, ChannelType fallbackChannelType, String fallbackTargetId)
Creates a display-only Message from a combined message item with optional channel fallback.
Parameters
item
A single item from CombineMessage.msgList.
current User Id
Current user's ID, used to determine send/receive direction.
fallback Channel Type
Fallback channel type when item-level channel type is unknown.
fallback Target Id
Fallback channel ID when item targetId is empty.