Fix avatar change rendering

pull/1754/head
Nicolas Werner 8 months ago
parent b39ffc2f1a
commit 20f17aaa36
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      src/timeline/TimelineModel.cpp

@ -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)));

Loading…
Cancel
Save