mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +01:00
Do not parse URLs in LinkPart
This commit is contained in:
parent
dbce6285d9
commit
e5da97fbdf
@ -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"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user