Browse SDKs · iOS
SDKsiOS

Check whether the current user joined a group

Check whether the current user has joined a specified iOS group.

Copy
[[OIMManager manager] isJoinedGroup:groupID
    onSuccess:^(BOOL joined) { [self updateJoinedState:joined]; }
    onFailure:^(NSInteger code, NSString *message) { [self showErrorCode:code message:message]; }];

The joined value in the success callback is the current membership snapshot. The query does not trigger a delegate. For ongoing changes, see Groups overview.