You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Prevent the url from being butchered when clicking user IDs
This commit is contained in:
@@ -101,7 +101,8 @@ matrixLinkify.options = {
|
||||
return {
|
||||
click: function(e) {
|
||||
// sprout a MemberInfo context menu
|
||||
console.log("Context => %s", href)
|
||||
console.log("Context => %s", href);
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -111,8 +112,6 @@ matrixLinkify.options = {
|
||||
switch (type) {
|
||||
case 'roomalias':
|
||||
return "#/room/" + href;
|
||||
case 'userid':
|
||||
return '#';
|
||||
default:
|
||||
return href;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user