Browse SDKs · React Native
Platform
SDKsReact Native

Update group profile

Update group name, description, and avatar using the OpenIM React Native SDK.

Copy

Update essential group attributes—including name, description, and avatar image. Pass only the properties to be modified:

await OpenIMSDK.setGroupInfo({
  groupID,
  groupName: groupName.trim(),
  introduction: introduction.trim(),
  faceURL,
});

Parameters

ParameterTypeRequiredDescription
groupIDstringYesTarget group ID to update.
groupNamestringNoNew group name.
introductionstringNoNew group description text.
faceURLstringNoNew group avatar image URL.

Alongside groupID, provide at least one field to modify. Omitted fields remain unchanged on the server.

Return value

A resolved Promise confirms that the group profile fields were updated on the server.

The update triggers the OnGroupInfoChanged event for all group members. Reconcile the local group record keyed by groupID. For complete event listeners, see Group overview.