You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
don't try to do preview URLs of matrix IDs (yet :D)
This commit is contained in:
@ -84,7 +84,10 @@ module.exports = React.createClass({
|
||||
findLink: function(nodes) {
|
||||
for (var i = 0; i < nodes.length; i++) {
|
||||
var node = nodes[i];
|
||||
if (node.tagName === "A" && node.getAttribute("href")) {
|
||||
if (node.tagName === "A" && node.getAttribute("href") &&
|
||||
(node.getAttribute("href").startsWith("http://") ||
|
||||
node.getAttribute("href").startsWith("https://")))
|
||||
{
|
||||
return node;
|
||||
}
|
||||
else if (node.children && node.children.length) {
|
||||
|
Reference in New Issue
Block a user