clearMessages

public abstract void clearMessages(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)

Deletes all messages in a specific conversation.

Note: Chatrooms are not supported!

Since

5.0.0

Parameters

conversationType

The type of conversation. Chatrooms are not supported. Refer to Conversation.ConversationType.

targetId

The ID of the conversation. Depending on the conversationType, it could be a user ID, discussion group ID, or group ID.

callback

Callback indicating whether the operation was successful.