Browse SDKs · uni-app / uni-app x
SDKsuni-app

Create a merged forward message

OpenIM uni-app / uni-app x SDK guide for Create a merged forward message.

Copy

Parameters

ParameterTypeRequiredDescription
messageListOpenIMMessageItem[]YesSent messages to merge.
titlestringYesCard title.
abstractListstring[]YesSummary 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.