Browse SDKs · Flutter
Platform
SDKsFlutterEnterprise

Set conversation group order

Batch configure display ordering for conversation groups using the OpenIM Flutter SDK.

Copy

Batch configure display ordering sequences across multiple conversation groups:

Parameters

ParameterTypeRequiredDescription
ordersList<ConversationGroupOrder>YesList of group ordering objects. Each item contains groupID (target conversationGroupID, not a chat group ID) and its new numeric order value.

Code example

await OpenIM.iMManager.conversationGroupManager.setConversationGroupOrder(
  orders: [
    ConversationGroupOrder(groupID: firstGroupID, order: 100),
    ConversationGroupOrder(groupID: secondGroupID, order: 200),
  ],
);

Return value

A successful Future indicates that the ordering configuration request has been processed. The client updates group sort indexes locally using conversationGroupID as the key.

State changes after the call

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