cleanRemoteHistoryMessages
public abstract void cleanRemoteHistoryMessages( ConversationType conversationType, String targetId, long recordTime, RongIMClient.OperationCallback callback)
清除服务器上存储的历史消息。
根据会话类型和目标会话 id 清除某一会话指定时间戳之前的服务端历史消息, 清除成功后只能从服务端获取到该时间戳之后的历史消息。注意:必须先开通历史消息云存储功能!
Parameters
conversationType
会话类型。
targetId
会话 id。
recordTime
清除消息截止时间戳,0 <= recordTime <= 当前会话最后一条消息的 sentTime,0 清除所有消息,其他值清除小于等于
recordTime 的消息
。
callback
清除消息的回调。