setConversationDraft method
设置会话草稿
只在本地保存,不会存储 Server,不能多端同步,程序卸载重装会失效。
参数
draftText 草稿内容, 为 null 则表示取消草稿
Implementation
@override
Future<V2TimCallback> setConversationDraft({
required String conversationID,
String? draftText,
}) async {
Map<String, dynamic> param = {
"conversationID": conversationID,
"draftText": draftText,
};
var resp = V2TimCallback.fromJson(
formatJson(
await _channel.invokeMethod(
"setConversationDraft",
buildConversationManagerParam(
param,
),
),
),
);
log("setConversationDraft", param, resp.toLogString());
return resp;
}