deleteRemoteMessages

public abstract void deleteRemoteMessages(ConversationType conversationType, String targetId, Array<Message> messages, IRongCoreCallback.OperationCallback callback)

Batch deletes specified remote messages in a conversation (and deletes the corresponding local messages).

A single batch operation only supports deleting messages from the same conversation. Ensure all messages in the list belong to the same conversation. A maximum of 100 messages can be deleted at once.Note: Chatrooms are not supported!

Versions below 5.6.9 do not support the ultra group conversation type. Support for ultra group conversation types starts from version 5.6.9.

Since

5.0.0

Parameters

conversationType

The conversation type. Chatrooms are not supported. Refer to .

targetId

The conversation ID. Depending on the conversationType, this could be a user ID or customer service ID.

messages

The array of messages to be deleted. The array size must not exceed 100.

callback

Callback indicating whether the deletion was successful.