clear Messages
public void clearMessages(ConversationType conversationType, String targetId, String channelId, IBooleanCallback callback)
清空某一会话的所有聊天消息记录。
Return
是否清空成功。
Parameters
conversation Type
会话类型。不支持传入 ConversationType.CHATROOM。
target Id
目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
channel Id
消息所属会话的业务标识。
public void clearMessages(List<ClearMessageOption> clearMessageOptionList, IBooleanCallback callback)
异步批量删除指定会话早于(含)发送时间的所有本地数据库消息。
Parameters
clear Message Option List
删除消息参数列表