From 831dca3723f29bd7afe2b431411fe015b46f1bfc Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 23 Mar 2020 16:50:12 -0400 Subject: [PATCH] EventContent: avoid some false name detection --- src/gui/Pages/Chat/Timeline/EventContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index ae9d1c1e..012012bb 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -17,7 +17,7 @@ HRowLayout { const lines = [] for (const [name, link] of mentions) { - if (name.startsWith("#") || name.startsWith("!")) continue + if (! link.match(/^https?:\/\/matrix.to\/#\/@.+/)) continue lines.push( `.mention[data-mention='${name}'] { color: ` +