Add newline to message

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-10 22:10:50 +05:30
parent fc3b391aa9
commit 17be7c4f4d

View File

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