clearRemoteMessages

public abstract void clearRemoteMessages(List<ClearMessageOption> clearMessageOptions, boolean isDeleteLocal, IRongCoreCallback.OperationCallback callback)

Asynchronously deletes all remote messages in the specified conversation on the server that were sent before or at the specified timestamp (local messages can also be deleted).

Passing a timestamp of 0 clears all messages.

Supported conversation types: one-to-one chat, group chat, chatroom, system message.

Since

5.6.7

Parameters

clearMessageOptions

List of message deletion parameters, with a maximum of 20 entries.

isDeleteLocal

Indicates whether to delete local messages.

callback

Callback to indicate whether the deletion was successful.