이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

메시지 삽입

Feature Description

When a message is inserted, the message will only be inserted into the local database but not be sent to the server.
Caution:
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: "");