createForPreview

public final Message createForPreview(CombineMsgItem item, String currentUserId)

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.

currentUserId

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.

currentUserId

Current user's ID, used to determine send/receive direction.

fallbackChannelType

Fallback channel type when item-level channel type is unknown.

fallbackTargetId

Fallback channel ID when item targetId is empty.