SDKsuni-app
Check group membership
OpenIM uni-app / uni-app x SDK guide for Check group membership.
isJoinGroup() returns whether the current account belongs to a specific group.
import { isJoinGroup } from '@/uni_modules/unix-openim-sdk'
const joined = await isJoinGroup(groupID)The boolean is a snapshot at query time. Refresh it after join, leave, dismissal, removal, re-login, or account change instead of caching one true permanently.
This query neither joins the group nor proves moderator permission. When not joined, follow the group's verification policy and application flow rather than creating local member state.
Was this page helpful?