批量获取会话列表
需要获取会话的信息,一次最多获取 100 个会话
返回一个 RCResult 类型 Promise,data 为 IAReceivedConversation 类型数组
本接口仅适用 Electron 平台批量获取会话列表,通过提供会话的唯一标标识属性返回 IReceivedConversation 类型的会话信息
5.9.9
批量获取会话列表示例:
const conversations = [{ conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId' }];const conversationList = await RongIMLib.electronExtension.getConversations(conversations);console.log('批量获取会话列表结果:', conversationList); Copy
const conversations = [{ conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId' }];const conversationList = await RongIMLib.electronExtension.getConversations(conversations);console.log('批量获取会话列表结果:', conversationList);
批量获取会话列表