Android: Fix Vosk logic

pull/8266/head
Laurent Cozic 2023-06-03 15:43:40 +01:00
parent 3a1759aabc
commit 60b3921808
1 changed files with 3 additions and 1 deletions

View File

@ -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');
}