Fix user pill deserialisation (#31947)
when containing slashes This also fixes `m.mentions` calculations on edits Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@ export default class MatrixToPermalinkConstructor extends PermalinkConstructor {
|
|||||||
const entity = parts[0];
|
const entity = parts[0];
|
||||||
if (entity[0] === "@") {
|
if (entity[0] === "@") {
|
||||||
// Probably a user, no further parsing needed.
|
// Probably a user, no further parsing needed.
|
||||||
return PermalinkParts.forUser(entity);
|
return PermalinkParts.forUser(matches[1]);
|
||||||
} else if (entity[0] === "#" || entity[0] === "!") {
|
} else if (entity[0] === "#" || entity[0] === "!") {
|
||||||
if (parts.length === 1) {
|
if (parts.length === 1) {
|
||||||
// room without event permalink
|
// room without event permalink
|
||||||
|
|||||||
Reference in New Issue
Block a user