SDKsReact Native
Set a local message extension
OpenIM React Native SDK guide for set a local message extension.
Use setMessageLocalEx() to save local extension data for a message on the current device.
await OpenIMSDK.setMessageLocalEx({
conversationID,
clientMsgID,
localEx: JSON.stringify({ expanded: true }),
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | Conversation containing the message. |
clientMsgID | string | Yes | Target message ID. |
localEx | string | Yes | Local extension string. It can contain JSON or another format of business extension data. |
After the call completes, the local extension data is saved in the message on the current device.
Was this page helpful?