clearGroupHistoryMessage
Introduction
Clear all the history messages for a group chat, on both local and remote server, without the deleting of conversation.
Do not works on Web.
Please do not invoke this method, if not necessary to clear the message on server.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
groupID | String | yes | All | The group ID. |
Returned template
V2TimCallback
{
code : int
desc : String
}
Return value details
name | type | description |
---|---|---|
code | int | Request result: Error codes. 0 means success. |
desc | String | The description of the failure. |
Code example
V2TimCallback clearGroupHistoryMessageRes = await TencentImSDKPlugin
.v2TIMManager
.getMessageManager()
.clearGroupHistoryMessage(groupID: "groupID");
if (clearGroupHistoryMessageRes.code == 0) {
}