Browse SDKs · React Native
SDKsReact NativeEnterprise

Enable or disable burn after reading

Enable or disable burn after reading for a conversation.

Copy

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

ParameterTypeRequiredDescription
conversationIDstringYesConversation ID to update.
isPrivatebooleanYesSet 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.