Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Update a conversation group

Update the name, order, or hidden state of a conversation group using the OpenIM Flutter SDK.

Copy

Modify attributes of an existing conversation group. Supply only the fields being updated:

Parameters

ParameterTypeRequiredDescription
conversationGroupIDStringYesTarget conversation group ID.
nameString?NoNew group name.
orderint?NoNew sorting sequence value.
exString?NoNew custom business extension string.
hiddenbool?NoWhether to hide this group from list views.

Code example

await OpenIM.iMManager.conversationGroupManager.updateConversationGroup(
  req: UpdateConversationGroupReq(
    conversationGroupID: conversationGroupID,
    name: 'Important Work',
    hidden: false,
  ),
);

Return value

A successful Future indicates that the update request has been processed by the server. The client uses conversationGroupID as the merge key to update properties on the local group model.

State changes after the call

Multi-device synchronization and arriving changes trigger onConversationGroupChanged notifications. For complete listener integration, see Conversation groups overview.