Browse SDKs · Flutter
Platform
SDKsFlutter

Check group membership

Check whether the current user has joined a group with the OpenIM Flutter SDK.

Copy

Check whether the current logged-in user is already a member of the specified group.

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID to check.

Code example

final joined = await OpenIM.iMManager.groupManager.isJoinedGroup(
  groupID: groupID,
);

Return value

Returns a Future resolving to a bool. Returns true if the current user has joined the group, or false otherwise.

State changes after the call

This query performs a lightweight membership check and does not trigger event callbacks. For group joining workflows and event handling, see Join a group and Group overview.