1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Android: Fix Vosk logic

This commit is contained in:
Laurent Cozic 2023-06-03 15:43:40 +01:00
parent 3a1759aabc
commit 60b3921808

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