setConversationDraft method

  1. @override
Future<V2TimCallback> setConversationDraft({
  1. required String conversationID,
  2. String? draftText,
})
override

Implementation

@override
Future<V2TimCallback> setConversationDraft(
    {required String conversationID, String? draftText}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getConversationManager()
      .setConversationDraft(
          conversationID: conversationID, draftText: draftText);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}