tencent cloud


Last updated: 2024-01-31 16:16:17

    Feature Description

    When a message is inserted, the message will only be inserted into the local database but not be sent to the server.
    Inserted messages will be lost if the account is logged in on another mobile device or the application is uninstalled and reinstalled.
    This API is used to insert tips into a conversation, such as "You have left the group" and "Keep your information secure. Do not send private information such as account, password, and verification code to the group chat". Such messages need to be displayed in the chat area, but do not need to be sent to others.

    Inserting a local message between one-to-one messages

    Call insertC2CMessageToLocalStorage (Details) to insert a local message between one-to-one messages. Currently, the SDK for Flutter only supports inserting custom messages.
    Sample code:
    TencentImSDKPlugin.v2TIMManager.getMessageManager().insertC2CMessageToLocalStorage(data: "", userID: "", sender: "");

    Inserting a local message between group messages

    Call insertGroupMessageToLocalStorage (Details) to insert a local message between group messages.
    Sample code:
    TencentImSDKPlugin.v2TIMManager.getMessageManager().insertGroupMessageToLocalStorage(data: "", groupID: "", sender: "");
    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