清空会话下历史消息
会话信息
本接口仅适用 Electron 平台,从本地消息数据库中删除指定会话所有消息。
5.4.0
清空会话下历史消息示例:
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const res = await RongIMLib.electronExtension.clearMessages(conversation);console.info('清空会话下历史消息结果:', res); Copy
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const res = await RongIMLib.electronExtension.clearMessages(conversation);console.info('清空会话下历史消息结果:', res);
清空会话下历史消息