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"; }