Do not parse URLs in LinkPart

This commit is contained in:
Danila Fedorin 2021-08-27 16:57:31 -07:00
parent dbce6285d9
commit e5da97fbdf

View File

@ -122,14 +122,10 @@ export class PillPart {
} }
export class LinkPart { export class LinkPart {
constructor(url, inlines) { constructor(url, inlines, internal = false) {
this.url = url; this.url = url;
this.inlines = inlines; this.inlines = inlines;
if (url.startsWith("matrix:")) { this.internal = internal;
this.matrixUrl = new MatrixURL(url);
} else {
this.matrixUrl = null;
}
} }
get type() { return "link"; } get type() { return "link"; }