tencent cloud

Chat

Flutter

下载
聚焦模式
字号
最后更新时间: 2025-04-16 14:46:45

Feature Description

When sending a message, the user may want to switch to another chat window before finishing the message. The unfinished message can be saved through the setConversationDraft API, so that the user can get back to it through the draftText field of the V2TIMConversation object and finish it.
Caution:
1. A draft can contain only text.
2. A draft will be stored only in the local database and not on the server. Therefore, it cannot be synced across devices and will not be available after the application is uninstalled and reinstalled.

Setting a Conversation Draft

Call the setConversationDraft API (Details) to set a conversation draft.
If the draftText parameter of this API is empty, the draft is canceled.
Sample code:
conversationManager.setConversationDraft(conversationID: "conversationID",draftText: "Draft");


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈