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)
parent
4d7eb5795c
commit
aef04d682b
|
@ -114,6 +114,17 @@ matrixLinkify.options = {
|
|||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
formatHref: function (href, type) {
|
||||
switch (type) {
|
||||
case 'roomalias':
|
||||
return '#/room/' + href;
|
||||
case 'userid':
|
||||
return '#';
|
||||
default:
|
||||
return href;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue