Browse SDKs · React Native
Platform
SDKsReact Native

Create merger message

Bundle multiple chat messages into a combined forwarded history message using the OpenIM React Native SDK.

Copy

Combine multiple historical messages into a single merged forward card:

const message = await OpenIMSDK.createMergerMessage({
  messageList: selectedMessages,
  title: 'Project Discussion Records',
  summaryList: [
    'Alex: Release schedule confirmed',
    'Taylor: I will follow up on QA testing',
  ],
});

Parameters

ParameterTypeRequiredDescription
messageListMessageItem[]YesArray of messages to bundle and merge.
titlestringYesTitle displayed on the merged card and preview header.
summaryListstring[]YesArray of preview summary strings displayed on the message card.

Return value

A resolved Promise returns the initialized MessageItem object with merged records, title, and summaries stored in mergeElem.

This method builds the message structure strictly in client memory; it does not dispatch messages to the server or trigger lifecycle events. After initialization, invoke Send message to deliver it to a conversation. Ensure summary snippets respect conversation privacy constraints.