SDKsReact NativeEnterprise
Enable or disable burn after reading
Enable or disable burn after reading for a conversation.
Call setConversationPrivateChat() to enable or disable burn after reading for a conversation. Set the duration separately with setConversationBurnDuration(); see Set the burn duration.
await OpenIMSDK.setConversationPrivateChat({
conversationID,
isPrivate: true,
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | Conversation ID to update. |
isPrivate | boolean | Yes | Set true to enable or false to disable. |
Return result
After the call completes, the conversation's burn-after-reading state is updated. Changes in the conversation list are delivered through OnConversationChanged; see Retrieve the conversation list.
Was this page helpful?