From 06a271a3c77f9d7fc1e9a30d78aa6f965414927e Mon Sep 17 00:00:00 2001 From: Itallo Dornelas <72089253+ItalloDornelas@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:58:43 -0300 Subject: [PATCH] Feature/prt 1761 1 (#43) * feat: improve debounce logic to save * feat: add rich and text to get id --- src/editor/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/editor/index.ts b/src/editor/index.ts index 9230c44..2efb211 100644 --- a/src/editor/index.ts +++ b/src/editor/index.ts @@ -58,9 +58,8 @@ export abstract class EditorAdapter { abstract insertInference(inference: IaraSpeechRecognitionDetail): void; abstract getEditorContent(): Promise<[string, string, string]>; - beginReport(currentReportId?: string): string | void { - if (currentReportId) return; - return this._recognition.beginReport(); + beginReport(): string | void { + return this._recognition.beginReport({ richText: "", text: "" }); } finishReport(clear = true): void {