Prevent the url from being butchered when clicking user IDs
This commit is contained in:
parent
a1444d3214
commit
11ef1ac336
1 changed files with 2 additions and 3 deletions
|
@ -101,7 +101,8 @@ matrixLinkify.options = {
|
||||||
return {
|
return {
|
||||||
click: function(e) {
|
click: function(e) {
|
||||||
// sprout a MemberInfo context menu
|
// 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) {
|
switch (type) {
|
||||||
case 'roomalias':
|
case 'roomalias':
|
||||||
return "#/room/" + href;
|
return "#/room/" + href;
|
||||||
case 'userid':
|
|
||||||
return '#';
|
|
||||||
default:
|
default:
|
||||||
return href;
|
return href;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue