From 60b392180874ee5ee213e5270f4c55e32d0c4da2 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 3 Jun 2023 15:43:40 +0100 Subject: [PATCH] Android: Fix Vosk logic --- packages/app-mobile/components/screens/Note.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app-mobile/components/screens/Note.tsx b/packages/app-mobile/components/screens/Note.tsx index 641111600..c3e566a35 100644 --- a/packages/app-mobile/components/screens/Note.tsx +++ b/packages/app-mobile/components/screens/Note.tsx @@ -1125,7 +1125,9 @@ class NoteScreenComponent extends BaseScreenComponent { this.scheduleSave(); } else { if (this.useEditorBeta()) { - this.editorRef.current.insertText(text); + // We add a space so that if the feature is used twice in a row, + // the sentences are not stuck to each others. + this.editorRef.current.insertText(`${text} `); } else { logger.warn('Voice typing is not supported in plaintext editor'); }