summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-06-14 00:05:26 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2024-06-14 00:05:26 +0200
commit20f17aaa367964295e8704a9323ca1081287b97f (patch)
treeff7238565ca9f7489cedb99ff632f517f0692613 /src
parentFix disabling a room ping (diff)
downloadnheko-20f17aaa367964295e8704a9323ca1081287b97f.tar.xz
Fix avatar change rendering
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp4
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)));