cleanRemoteHistoryMessages

public abstract void cleanRemoteHistoryMessages(ConversationType conversationType, String targetId, String channelId, long recordTime, IRongCoreCallback.OperationCallback callback)

Clears historical messages stored on the server.

Clears server-side historical messages before the specified timestamp for a specific conversation based on the conversation type and target conversation ID. After successful clearance, only historical messages after this timestamp can be retrieved from the server.

Note: The historical message cloud storage feature must be enabled first!

Since

5.1.1

Parameters

conversationType

Specifies the conversation type.

targetId

Specifies the conversation ID.

channelId

Specifies the business identifier of the message's conversation.

recordTime

Specifies the timestamp up to which messages will be cleared. 0 <= recordTime <= sentTime of the last message in the conversation. A value of 0 clears all messages, while other values clear messages with a timestamp less than or equal to recordTime.

callback

Callback for the message clearance operation.