From 4ee15005f5e064cffacbd204d3c84bd15bada977 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 1 Jul 2021 00:44:41 -0700 Subject: [PATCH] Inline code blocks don't contain other elements --- src/domain/session/room/timeline/MessageBody.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/MessageBody.js b/src/domain/session/room/timeline/MessageBody.js index 98a54634..33f5d196 100644 --- a/src/domain/session/room/timeline/MessageBody.js +++ b/src/domain/session/room/timeline/MessageBody.js @@ -70,8 +70,8 @@ class EmphPart { } class CodePart { - constructor(wraps) { - this.wraps = wraps; + constructor(text) { + this.text = text; } get type() { return "code"; }