diff --git a/src/domain/session/room/timeline/deserialize.js b/src/domain/session/room/timeline/deserialize.js
index e937bc7b..ce690732 100644
--- a/src/domain/session/room/timeline/deserialize.js
+++ b/src/domain/session/room/timeline/deserialize.js
@@ -397,8 +397,8 @@ export function tests() {
parseHTML: (html) => new HTMLParseResult(parse(html))
};
- function test(assert, input, output) {
- assert.deepEqual(parseHTMLBody(platform, null, true, input), new MessageBody(input, output));
+ function test(assert, input, output, replies=true) {
+ assert.deepEqual(parseHTMLBody(platform, null, replies, input), new MessageBody(input, output));
}
return {
@@ -495,6 +495,24 @@ export function tests() {
new CodeBlock(null, code)
];
test(assert, input, output);
+ },
+ "Replies are inserted when allowed": assert => {
+ const input = 'Hello,
properly.
"Text with code block": assert => {