This commit is contained in:
Black Hat
2018-10-01 10:08:07 +08:00
parent 56b820e1a8
commit 0654a8b2b6
5 changed files with 8 additions and 3 deletions

View File

@@ -330,7 +330,7 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
if (e.hasTextContent() && e.mimeType().name() != "text/plain") {
static const QRegExp userPillRegExp(
"<a href =\"https://matrix.to/#/@.*:.*\">(.*)</a>");
"<a href=\"https://matrix.to/#/@.*:.*\">(.*)</a>");
QString formattedStr(
static_cast<const TextContent*>(e.content())->body);
formattedStr.replace(userPillRegExp,