You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Make the links we emit for room URLs valid rather than relying on the onClick handler (ie. make them work if you c+p them)
This commit is contained in:
@@ -114,6 +114,17 @@ matrixLinkify.options = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
formatHref: function (href, type) {
|
||||||
|
switch (type) {
|
||||||
|
case 'roomalias':
|
||||||
|
return '#/room/' + href;
|
||||||
|
case 'userid':
|
||||||
|
return '#';
|
||||||
|
default:
|
||||||
|
return href;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user