SDKsFlutter
Update group profile
Update the name, introduction, and avatar of a group using the OpenIM Flutter SDK.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | String | Yes | Target group ID. |
groupName | String? | No | New group name. |
introduction | String? | No | New group introduction. |
faceURL | String? | No | New 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.
Was this page helpful?