SDKsiOSEnterprise
Set conversation-group order
Set the order of multiple conversation groups with Open_im_sdkSetConversationGroupOrder.
Use Open_im_sdkSetConversationGroupOrder to update the order of multiple conversation groups. Its argument is a JSON array of group-order objects.
Parameters
| Field | Required | Description |
|---|---|---|
conversationGroupID | Yes | The conversation-group ID. |
order | Yes | The new ordering value. Define one sorting direction consistently across the product. |
NSArray *orders = @[
@{ @"conversationGroupID": firstGroupID, @"order": @100 },
@{ @"conversationGroupID": secondGroupID, @"order": @200 },
];
NSData *requestData = [NSJSONSerialization dataWithJSONObject:orders options:0 error:nil];
NSString *requestJSON = [[NSString alloc] initWithData:requestData
encoding:NSUTF8StringEncoding];Pass your callback and requestJSON to Open_im_sdkSetConversationGroupOrder.
Result
A successful callback means that the reorder request has completed; do not depend on generic placeholder data. Reconcile the result through onConversationGroupChanged: or a subsequent query. For the complete listener, see Conversation groups overview.
Was this page helpful?