mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +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 {
|
||||
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"; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user