SDKsuni-app
Get conversations by ID
OpenIM uni-app / uni-app x SDK guide for Get conversations by ID.
getMultipleConversation() queries a batch of conversations by conversationID and returns OpenIMConversationListResult or null.
import { getMultipleConversation } from '@/uni_modules/unix-openim-sdk'
const result = await getMultipleConversation(['si_user_a_user_b', 'sg_group_123'])
const conversations = result?.conversations ?? []Results can be shorter than the request and need not preserve input order. Build a map by conversationID and keep placeholders for conversations missing from the local database. Split an unbounded set of IDs into reasonable batches.
This operation establishes only a snapshot. It does not subscribe to changes. Continue to process the events owned by Get the conversation list for ongoing updates.
Was this page helpful?