Browse SDKs · uni-app / uni-app x
SDKsuni-appEnterprise

Set friend-add permission

Understand the commercial friend-add policy and the current plugin write boundary.

Copy

Friend-add permission is a Commercial account policy. The locked unix-openim-sdk 0.2.0-rc.3 exposes related commercial profile data, but OpenIMSetSelfInfoParams has no addFriendPermission write parameter.

This release therefore cannot expose or simulate a client setter. Do not store the policy in ex. Change it through a supported commercial backend or an administration API confirmed to support the field, then requery the current profile and refresh the UI.

Perform a capability check before displaying this setting. If the field is absent on a public edition, older server, or response that does not expose it, show the setting as unavailable. Do not assume that absence means “anyone can add” or “verification required.”

See Send a friend application and Get received friend applications for the client-side friend-request flow.