Browse SDKs · Flutter
SDKsFlutter

Retrieve conversations by ID

Retrieve conversations in batches by conversationID with the OpenIM Flutter SDK.

Copy

When you already have a set of conversationID values, use getMultipleConversation() to read the latest conversation snapshots.

final conversations = await OpenIM.iMManager.conversationManager
    .getMultipleConversation(conversationIDList: conversationIDs);

final byID = {
  for (final item in conversations) item.conversationID: item,
};

A successful Future returns List<ConversationInfo>. If a requested ID has no result, treat it as a missing record; do not assume response positions correspond exactly to the request list. The query itself does not trigger a conversation callback.