From 17be7c4f4d03f48548c0108a509a470448825a3e Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 10 May 2021 22:10:50 +0530 Subject: [PATCH] Add newline to message Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/MessageBodyBuilder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/domain/session/room/timeline/MessageBodyBuilder.js b/src/domain/session/room/timeline/MessageBodyBuilder.js index 3b297cbd..c1dc9222 100644 --- a/src/domain/session/room/timeline/MessageBodyBuilder.js +++ b/src/domain/session/room/timeline/MessageBodyBuilder.js @@ -10,6 +10,7 @@ export class MessageBodyBuilder { const components = text.split("\n"); components.slice(0, -1).forEach(t => { linkify(t, this.insert.bind(this)); + this.insertNewline(); }); const [last] = components.slice(-1); linkify(last, this.insert.bind(this));