From 2a1708aa27142f16d274fd3adf21bbd69496cbcb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 4 Feb 2026 14:26:05 +0000 Subject: [PATCH] Fix user pill deserialisation (#31947) when containing slashes This also fixes `m.mentions` calculations on edits Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/utils/permalinks/MatrixToPermalinkConstructor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/permalinks/MatrixToPermalinkConstructor.ts b/src/utils/permalinks/MatrixToPermalinkConstructor.ts index 77b4830e19..d7cbc5e927 100644 --- a/src/utils/permalinks/MatrixToPermalinkConstructor.ts +++ b/src/utils/permalinks/MatrixToPermalinkConstructor.ts @@ -63,7 +63,7 @@ export default class MatrixToPermalinkConstructor extends PermalinkConstructor { const entity = parts[0]; if (entity[0] === "@") { // Probably a user, no further parsing needed. - return PermalinkParts.forUser(entity); + return PermalinkParts.forUser(matches[1]); } else if (entity[0] === "#" || entity[0] === "!") { if (parts.length === 1) { // room without event permalink