SDKsWASM
Create a reply message
Create a reply that includes a reference to the original message.
const { data: message } = await openimsdk.createQuoteMessage({
text: 'I agree with this proposal',
message: JSON.stringify(originalMessage),
});text is the new message body, and message is the serialized original MessageItem. Do not assemble the original message fields manually. When the Promise resolves, it returns a new pending message object and does not modify the referenced message.
Was this page helpful?