Don't color usernames in state delegates

This starts to look quite messy when there are many state delegates visible
This commit is contained in:
Tobias Fella
2024-01-27 16:38:38 +01:00
parent fb3b1490a9
commit 173e507ebf
4 changed files with 10 additions and 6 deletions

View File

@@ -321,8 +321,7 @@ QString EventHandler::getBody(const Quotient::RoomEvent *event, Qt::TextFormat f
}
if (prettyPrint) {
subjectName = QStringLiteral("<a href=\"https://matrix.to/#/%1\" style=\"color: %2\">%3</a>")
.arg(e.userId(), Utils::getUserColor(m_room->user(e.userId())->hueF()).name(), subjectName);
subjectName = QStringLiteral("<a href=\"https://matrix.to/#/%1\">%2</a>").arg(e.userId(), subjectName);
}
// The below code assumes senderName output in AuthorRole