SDKsFlutter
Clear conversation messages
Keep a conversation entry while clearing its messages with the OpenIM Flutter SDK.
For a product action described as “Clear chat history,” call:
await OpenIM.iMManager.conversationManager
.clearConversationAndDeleteAllMsg(conversationID: conversationID);After the Future succeeds, the conversation entry remains, but messages and summary state for the current account are cleared. Clear the current message list immediately, then reconcile the latest message, summary, and unread state through onConversationChanged or another query.
Was this page helpful?