diff --git a/shared/js/text/chat.ts b/shared/js/text/chat.ts index 58bdb672..bafca40f 100644 --- a/shared/js/text/chat.ts +++ b/shared/js/text/chat.ts @@ -113,5 +113,9 @@ export function preprocessChatMessageForSend(message: string) : string { message = bbcodeLinkUrls(message, noParseRanges); } + while(message.endsWith("\n")) { + message = message.substring(0, message.length - 1); + } + return message; } \ No newline at end of file