mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Add newline to message
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
fc3b391aa9
commit
17be7c4f4d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user