SDKsiOSEnterprise
Update a conversation group
Update a conversation group with Open_im_sdkUpdateConversationGroup.
Use Open_im_sdkUpdateConversationGroup to modify an existing conversation group. conversationGroupID is required; include only the fields that this operation needs to update.
Parameters
| Field | Required | Description |
|---|---|---|
conversationGroupID | Yes | The target conversation-group ID. |
name | No | The new group name. |
ex | No | The new application-defined extension string. |
hidden | No | Whether to hide the group. |
NSDictionary *request = @{
@"conversationGroupID": conversationGroupID,
@"name": @"Priority work",
@"hidden": @NO,
};
NSData *requestData = [NSJSONSerialization dataWithJSONObject:request options:0 error:nil];
NSString *requestJSON = [[NSString alloc] initWithData:requestData
encoding:NSUTF8StringEncoding];Pass your callback and requestJSON to Open_im_sdkUpdateConversationGroup.
Result
The success callback's data is the updated group as a JSON object. Merge it by conversationGroupID. Other signed-in clients or later synchronization may receive onConversationGroupChanged:. For the complete listener, see Conversation groups overview.
Was this page helpful?