SDKsWASMEnterprise
Enable or disable burn after reading
Enable or disable burn-after-reading mode for a conversation.
isPrivateChat enables or disables burn-after-reading mode. It is separate from scheduled server-message deletion.
await openimsdk.setConversation({
conversationID,
isPrivateChat: true,
});Pass false to disable the mode. Configure its duration separately through burnDuration; see Set the burn duration.
A successful Promise means only that the setting request has completed. When OnConversationChanged arrives, use conversationID to update the state on the matching conversation. See Get the conversation list for the complete listener.
Was this page helpful?