deleteConversationsFromGroup
Introduction
Delete a specific conversation from a group
Only works since version of 4.0.8.
Do not works on Web.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
groupName | String | yes | All | The name of the conversation group that some conversation belongs to it needs to be deleted. |
conversationIDList | List< String > | yes | All | The list of conversation IDs needs to be deleted. |
Returned template
V2TimValueCallback<List<V2TimConversationOperationResult>>
{
code : int
desc : String
data : List<V2TimConversationOperationResult>
}
Return value details
name | type | description |
---|---|---|
code | int | Request result: Error codes. 0 means success. |
desc | String | The description of the error. It will be empty if success. |
data | List< V2TimConversationOperationResult > | The list of results. |
Code example
V2TimValueCallback<List<V2TimConversationOperationResult>>
deleteConversationsFromGroupRes = await TencentImSDKPlugin.v2TIMManager
.getConversationManager()
.deleteConversationsFromGroup(
groupName: "groupName",
conversationIDList: []);
if (deleteConversationsFromGroupRes.code == 0) {
deleteConversationsFromGroupRes.data?.forEach((element) {
element.conversationID;
element.resultCode;
element.resultInfo;
});
}