Revert "Linkify urls"

This seems to mess up user mentions. Probably a bug in the regex;
Reverting for now

This reverts commit 1763dc13c5.
This commit is contained in:
Tobias Fella
2022-05-30 14:27:50 +02:00
parent dce4a409c7
commit 5a7c3295dc

View File

@@ -391,7 +391,6 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
auto base = url.scheme() + QStringLiteral("://") + url.host() + (url.port() != -1 ? ':' + QString::number(url.port()) : QString());
htmlBody.replace(utils::mxcImageRegExp, QStringLiteral(R"(<img \1 src="%1/_matrix/media/r0/download/\2/\3" \4 > )").arg(base));
linkifyUrls(htmlBody);
return htmlBody;
}