SDKsWASM
Set group join verification
Set the verification policy for group applications and invitations.
import { GroupVerificationType } from '@openim/wasm-client-sdk';
await openimsdk.setGroupInfo({
groupID,
needVerification: GroupVerificationType.AllNeed,
});| Enum value | Numeric value | Meaning |
|---|---|---|
GroupVerificationType.ApplyNeedInviteNot | 0 | User applications require approval; member invitations join directly. |
GroupVerificationType.AllNeed | 1 | Applications and ordinary member invitations require approval; owner and administrator invitations are exempt. |
GroupVerificationType.AllNot | 2 | Applications and invitations join directly. |
Use this policy to display the appropriate application prompt, but OpenIMServer makes the final admission decision. After the Promise succeeds, merge the latest group profile from OnGroupInfoChanged; see Group overview for the complete listener.
Was this page helpful?