获取会话所有消息数
本接口仅适用 Electron 平台,获取指定会话下的所有消息数
5.7.2
获取会话所有消息数示例:
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const res = await RongIMLib.electronExtension.getMessageCount(conversation);console.info('获取会话所有消息数结果:', res); Copy
const conversation = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId',};const res = await RongIMLib.electronExtension.getMessageCount(conversation);console.info('获取会话所有消息数结果:', res);
获取会话所有消息数