deleteRemoteMessages

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

Batch deletes specified remote messages in a conversation (also deletes 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: Not supported for chatrooms!

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

Since

5.1.1

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.

channelId

The business identifier of the conversation to which the messages belong.

messages

The array of messages to delete. The array size must not exceed 100.

callback

Callback indicating whether the deletion was successful.