Browse SDKs · Flutter
Platform
SDKsFlutter

Update group profile

Update the name, introduction, and avatar of a group using the OpenIM Flutter SDK.

Copy

Update basic presentation properties of a group (group name, introduction, and avatar). Group announcements, join verification, and permissions are managed separately; do not mix them into profile modifications:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.
groupNameString?NoNew group name.
introductionString?NoNew group introduction.
faceURLString?NoNew group avatar URL.

Code example

await OpenIM.iMManager.groupManager.setGroupInfo(
  GroupInfo(
    groupID: groupID,
    groupName: groupName.trim(),
    introduction: introduction.trim(),
    faceURL: faceURL,
  ),
);

Return value

A successful Future indicates that the server accepted and applied the group profile updates.

State changes after the call

The server broadcasts group profile update notifications. The client updates the local group cache using groupID as the key. For complete listener integration, see Groups overview. To proactively verify fresh state, call Get specified groups info.