SDKsWASM
Create a merged forward message
Create a merged forward message with the WASM SDK.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
messageList | MessageItem[] | Yes | List of sent messages to merge. |
title | string | Yes | Title displayed on the merged message card. |
summaryList | string[] | Yes | Summary 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.
Was this page helpful?