清空本地聊天记录
当前后台暂未提供远端删除能力,该接口只清空本地消息。SDK 会记录当前会话最大消息 seq,后续拉取该会话历史消息时会自动屏蔽小于等于该 seq 的消息,避免旧消息重新出现。
接口
objc
- (void)clearHistoryMessage:(BIMConversation *)conversation
succ:(BIMSucc _Nullable)succ
fail:(BIMFail _Nullable)fail;1
2
3
2
3
代码示例
swift
BIMManager.sharedInstance().clearHistoryMessage(conversation) {
print("clear history success")
} fail: { code, desc in
print("clear history fail: \(code) \(desc)")
}1
2
3
4
5
2
3
4
5
