SDKsuni-app
Get joined groups
OpenIM uni-app / uni-app x SDK guide for Get joined groups.
getJoinedGroupList() reads the current account's complete local joined-group snapshot in one call.
import { getJoinedGroupList } from '@/uni_modules/unix-openim-sdk'
const result = await getJoinedGroupList()
replaceJoinedGroups(result?.groups ?? [])The Promise resolves to OpenIMGroupListResult or null; read groups from groups and deduplicate by groupID. Use the paginated operation for large lists rather than loading an unbounded local database.
This query establishes a snapshot and does not trigger group events. Merge joined, deleted, and info events from Group overview, and requery after login or synchronization gaps.
Was this page helpful?