SDKsuni-app
Create a merged forward message
OpenIM uni-app / uni-app x SDK guide for Create a merged forward message.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
messageList | OpenIMMessageItem[] | Yes | Sent messages to merge. |
title | string | Yes | Card title. |
abstractList | string[] | Yes | Summary rows displayed on the card. |
import { createMergerMessage } from '@/uni_modules/unix-openim-sdk'
const merger = await createMergerMessage({
messageList: selectedMessages,
title: 'Project discussion',
abstractList: selectedMessages.slice(0, 4).map(buildSummary),
})The Promise creates a new outgoing message and does not modify its source messages. Keep summaries consistent with source content and provide fallback text for unsupported types. Verify sharing permission and sensitive content, and limit total message count and size.
Was this page helpful?