SDKsWASM
Set member profile access
Control whether group members can view other members’ profiles through the group.
lookMemberInfo controls access to member profiles.
import { AllowType } from '@openim/wasm-client-sdk';
await openimsdk.setGroupInfo({
groupID,
lookMemberInfo: AllowType.NotAllowed,
});| Enum value | Numeric value | Meaning |
|---|---|---|
AllowType.Allowed | 0 | Allow members to view other member profiles. |
AllowType.NotAllowed | 1 | Prevent members from viewing other member profiles. |
Do not interpret these values as the common Boolean convention of 0 = false and 1 = true.
This setting is independent of whether members may add friends through the group. After the Promise succeeds, merge the latest group profile from OnGroupInfoChanged; see Group overview for the complete listener.
Was this page helpful?