MsgListDelete
introduction
Delete message list
Delete local messages as well as the server messages. Beware of the following
Save and reuse the original message list Json to avoid message reconstruction.
Delete maximum 30 messages once.
Maximum invoking 1 time per second.
If an account retrieved these messgaes on other device before deletion, these messgaes stay on those devices, meaning that message deletion is not synchronized on different devices.
Parameter details
overload1
Parameter name | Parameter type | Required | Description |
---|---|---|---|
conv_id | string | Required | Conversation ID |
conv_type | TIMConvType | Required | Conversation type |
message_list | List< Message > | Required | Deleted message list |
callback | NullValueCallback | Required | Asynchronous callback |
overload2
Parameter name | Parameter type | Required | Description |
---|---|---|---|
conv_id | string | Required | Conversation ID |
conv_type | TIMConvType | Required | Conversation type |
message_list | List< Message > | Required | Deleted message list |
callback | ValueCallback< string > | Required | Asynchronous callback The format of json_param in the return value is string |
Returned template
TIMResult
The parameters of the callback function after successfully calling the API:
code:int
desc:string
json_param:'' // json_ Params is an empty string ""
user_data:string
Return value details
name | type | description |
---|---|---|
TIMResult | TIMResult | Return value of calling API |
code | int | Result error code: Error Codes |
desc | string | The description of the error. |
json_param | string | Json string. Calling different API will get different Json strings. |
user_data | string | User-defined data transfered by ImSDK without any processing |