tencent cloud

Feedback

Last updated: 2023-01-29 16:03:29

    Feature Description

    One-to-one messages and group messages can be cleared. When messages in a conversation are cleared, all the messages in the conversation will be cleared both locally and from the cloud, but the conversation itself will not be deleted.
    Note:
    Do not use this API if you do not want to clear messages from the cloud.
    If the last message is deleted, the lastMessage in the conversation will become the last but one message.

    Clearing one-to-one messages

    Call clearC2CHistoryMessage (Details) to clear one-to-one messages.
    Sample code:
    TencentImSDKPlugin.v2TIMManager.getMessageManager().clearC2CHistoryMessage(userID: "userid");

    Clearing group messages

    Call clearGroupHistoryMessage (Details) to clear group messages.
    Sample code:
    TencentImSDKPlugin.v2TIMManager.getMessageManager().clearGroupHistoryMessage(groupID: "");
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support