Fix adding unintended space to beginning of messages

This commit is contained in:
Flashfyre 2024-04-07 21:38:04 -04:00
parent 13167a3901
commit b767a90464
1 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,6 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler {
let newText = '';
for (let w = 0; w < textWords.length; w++) {
const nextWordText = `${newText} ${textWords[w]}`;
console.log(nextWordText);
if (textWords[w].includes('\n')) {
newText = nextWordText;
lastLineCount++;
@ -69,7 +68,7 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler {
}
}
text = newText;
text = newText.trimStart();
}
if (this.textTimer) {