getConversationListByIds static method

Future<NIMResult<List<NIMConversation>>> getConversationListByIds(
  1. List<String> conversationIds
)

根据会话ID获取会话列表

Implementation

static Future<NIMResult<List<NIMConversation>>> getConversationListByIds(
    List<String> conversationIds) async {
  final enableCloud = await IMKitClient.enableCloudConversation;
  if (enableCloud) {
    return NimCore.instance.conversationService
        .getConversationListByIds(conversationIds);
  } else {
    return NimCore.instance.localConversationService
        .getConversationListByIds(conversationIds);
  }
}