diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-14 00:05:26 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-14 00:05:26 +0200 |
commit | 20f17aaa367964295e8704a9323ca1081287b97f (patch) | |
tree | ff7238565ca9f7489cedb99ff632f517f0692613 | |
parent | Fix disabling a room ping (diff) | |
download | nheko-20f17aaa367964295e8704a9323ca1081287b97f.tar.xz |
Fix avatar change rendering
-rw-r--r-- | src/timeline/TimelineModel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 14fd574b..4b74b3bd 100644 --- a/src/timeline/TimelineModel.cpp +++ b/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))); |