From 9fcd90c99eb55b1ef652999bdecc7d74f255d320 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Mon, 27 Sep 2021 13:24:34 +0000 Subject: [PATCH] Fix minor prefixing mistake --- src/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Link.js b/src/Link.js index 6c31d15c..3aa3fb15 100644 --- a/src/Link.js +++ b/src/Link.js @@ -114,7 +114,7 @@ export class Link { let [identifier, eventId] = linkStr.split("/"); - if(linkStr.startsWith("matrix:") || linkStr.startsWith("u/") || linkStr.startsWith("roomid/")) { + if(linkStr.startsWith("matrix:") || linkStr.startsWith("u/") || linkStr.startsWith("r/") || linkStr.startsWith("roomid/")) { const split = linkStr.split("/"); if(split.length < 2) return null;