Update Link.js

This commit is contained in:
Kevin Kandlbinder 2022-09-12 02:03:15 +02:00 committed by GitHub
parent 86ea1b0aa8
commit 07918b406f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ export class Link {
if (!linkStr.startsWith("#/")) {
return null;
}
linkStr = linkStr.substr(2);
linkStr = linkStr.slice(2);
const linkStrMatrixUrl = fragment.substr(2).startsWith("matrix:") ? fragment.substr(2) : "matrix:"+fragment.substr(2);
@ -135,6 +135,8 @@ export class Link {
return link;
} catch(e) {} // The fragment was no matrix-URL.
linkStr = linkStr.substr(2);
const [identifier, eventId] = linkStr.split("/");
let viaServers = [];