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. Merge the latest state from OnGroupInfoChanged by groupID; see Group overview for the complete listener.
Was this page helpful?