SDKsiOS
Clear conversation messages
Retain a conversation entry while clearing its messages with OpenIM iOS SDK.
Call this API when the product action means “Clear chat history”:
[[OIMManager manager] clearConversationAndDeleteAllMsg:conversationID
onSuccess:nil
onFailure:nil];A successful callback means that the request has completed. Clear the current message list immediately, then reconcile the conversation summary, latest message, and unread state through onConversationChanged: or a subsequent query. The conversation entry remains available.
Was this page helpful?