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:
David Baker 2016-02-18 18:16:39 +00:00
parent 4d7eb5795c
commit aef04d682b

View File

@ -114,6 +114,17 @@ matrixLinkify.options = {
}
};
}
},
formatHref: function (href, type) {
switch (type) {
case 'roomalias':
return '#/room/' + href;
case 'userid':
return '#';
default:
return href;
}
}
};