SDKsFlutterEnterprise
Periodically delete server-side messages
Enable, disable, and configure periodic server-side message deletion for a conversation with the OpenIM Flutter SDK.
isMsgDestruct and msgDestructTime together define periodic server-side message deletion and can be submitted in one request.
await OpenIM.iMManager.conversationManager.setConversation(
conversationID,
ConversationReq(
isMsgDestruct: true,
msgDestructTime: 3600,
),
);msgDestructTime is measured in seconds. Pass isMsgDestruct: false to disable the setting. This capability periodically deletes server-side messages; it is not burn after reading.
A successful Future means that the settings request completed. Merge the latest switch and interval by conversationID through onConversationChanged. For the complete listener, see Retrieve the conversation list.
Was this page helpful?