obtain
public final CombineMessage obtain(<Error class: unknown class> context, List<Message> messages, List<String> nameList, List<String> summaryList, ChannelType sourceChannelType)
Creates a CombineMessage ready to send from a list of Message objects.
Serializes the message list to a local file via libcore io.rong.message.CombineV2Message, then returns a CombineMessage populated with nameList, summaryList, msgNum, and localPath.
Return
A populated CombineMessage ready to be sent via sendMediaMessage, or null on failure.
Parameters
context
Application context (used for file writing).
messages
The messages to combine-forward, sorted by send time.
name List
Display names of senders (deduplicated / source group name).
summary List
Short preview strings for each message (e.g. "小雅:图片").
source Channel Type
Source channel type of the original messages.