clearMessages

public void clearMessages(ConversationType conversationType, String targetId, String channelId, IBooleanCallback callback)

清空某一会话的所有聊天消息记录。

Return

是否清空成功。

Parameters

conversationType

会话类型。不支持传入 ConversationType.CHATROOM。

targetId

目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。

channelId

消息所属会话的业务标识。


public void clearMessages(List<ClearMessageOption> clearMessageOptionList, IBooleanCallback callback)

异步批量删除指定会话早于(含)发送时间的所有本地数据库消息。

Parameters

clearMessageOptionList

删除消息参数列表