Browse SDKs · WASM
Platform
SDKsWASM

Create a merged forward message

Create a merged forward message with the WASM SDK.

Copy

Parameters

ParameterTypeRequiredDescription
messageListMessageItem[]YesList of sent messages to merge.
titlestringYesTitle displayed on the merged message card.
summaryListstring[]YesSummary lines displayed on the card.
const { data: message } = await openimsdk.createMergerMessage({
  messageList: selectedMessages,
  title: 'Project discussion history',
  summaryList: selectedMessages.slice(0, 4).map(buildSummary),
});

When the Promise resolves, it returns a pending MessageItem object. Forwarding merged messages does not modify the original message records. Next, deliver the merged message to the target conversation using Send a message.