From e5da97fbdf6b0cf6e83120e12706267947f4335a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 27 Aug 2021 16:57:31 -0700 Subject: [PATCH] Do not parse URLs in LinkPart --- src/domain/session/room/timeline/MessageBody.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/domain/session/room/timeline/MessageBody.js b/src/domain/session/room/timeline/MessageBody.js index 663af86c..bad92f58 100644 --- a/src/domain/session/room/timeline/MessageBody.js +++ b/src/domain/session/room/timeline/MessageBody.js @@ -122,14 +122,10 @@ export class PillPart { } export class LinkPart { - constructor(url, inlines) { + constructor(url, inlines, internal = false) { this.url = url; this.inlines = inlines; - if (url.startsWith("matrix:")) { - this.matrixUrl = new MatrixURL(url); - } else { - this.matrixUrl = null; - } + this.internal = internal; } get type() { return "link"; }