Browse SDKs · Flutter
SDKsFlutter

Set permission to add friends from the group

Control whether members can send friend applications through a group with the OpenIM Flutter SDK.

Copy
await OpenIM.iMManager.groupManager.setGroupInfo(
  GroupInfo(
    groupID: groupID,
    applyMemberFriend: AllowType.notAllow,
  ),
);

AllowType.allow is 0 and means allowed. AllowType.notAllow is 1 and means not allowed. This field does not control whether member profiles are visible.

A successful Future means that the request completed. Reconcile the final state through onGroupInfoChanged or another query.