SDKsWASM
Set member friend request permission
Control whether group members can send friend applications to other members through the group.
import { AllowType } from '@openim/wasm-client-sdk';
await openimsdk.setGroupInfo({
groupID,
applyMemberFriend: AllowType.NotAllowed,
});| Enum value | Numeric value | Meaning |
|---|---|---|
AllowType.Allowed | 0 | Allow friend applications through group membership. |
AllowType.NotAllowed | 1 | Prevent friend applications through group membership. |
This field controls only the entry point for friend applications based on group membership; it is not the same as hiding member profiles.
A successful Promise means that the setting request has completed. When OnGroupInfoChanged arrives, use groupID to update the matching group profile. See Group overview for the complete listener.
Was this page helpful?