delete Messages
public abstract void deleteMessages(Array<int> messageIds, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes messages.
Since
5.0.0
Parameters
message Ids
An array of message IDs to be deleted.
callback
Callback indicating whether the deletion was successful.
public abstract void deleteMessages(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes all messages in a specific conversation.
This interface deletes all messages in the database for the specified conversation and cleans up the database space to reduce storage usage.
Since
5.0.0
Parameters
conversation Type
The type of conversation. Chatroom is not supported. Refer to .
target Id
The conversation ID. Depending on the conversationType, it could be userId, groupId, or discussionId.
callback
Callback indicating whether the deletion was successful.