clean Remote History Messages
public abstract void cleanRemoteHistoryMessages(ConversationType conversationType, String targetId, 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.0.0
Parameters
conversation Type
The conversation type.
target Id
The conversation ID.
record Time
The timestamp for clearing messages, where 0 <= recordTime <= the
sentTime of the last message in the current conversation
. A value of 0 clears all messages, while other values clear messages less than or equal to the recordTime.
callback
The callback for clearing messages.