Fix avatar change rendering

This commit is contained in:
Nicolas Werner 2024-06-14 00:05:26 +02:00
parent b39ffc2f1a
commit 20f17aaa36
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -736,7 +736,9 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
.arg(displayName(QString::fromStdString(e.sender)))
.arg(QStringLiteral("<img height=\"32\" src=\"%1\">")
.arg(QUrl::toPercentEncoding(
QString::fromStdString(e.content.url))));
QString::fromStdString(e.content.url)
.replace("mxc://", "image://MxcImage/"),
":/")));
else
return tr("%1 removed the room avatar.")
.arg(displayName(QString::fromStdString(e.sender)));