diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-06 01:01:21 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-06-06 01:34:23 +0200 |
commit | 777c41daa17c72b3a201fb7ff7727e68a5ff51e2 (patch) | |
tree | f588c9cdb2db331b729c322d7505f5f8adf18e32 /src | |
parent | Fix marking newly created rooms as DM automatically (diff) | |
download | nheko-777c41daa17c72b3a201fb7ff7727e68a5ff51e2.tar.xz |
Support authenticated media
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 4aa9af00..14fd574b 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -3277,8 +3277,8 @@ TimelineModel::widgetLinks() const QStringList list; auto user = utils::localUser(); - auto av = QUrl::toPercentEncoding( - QString::fromStdString(http::client()->mxc_to_download_url(avatarUrl(user).toStdString()))); + // auto av = QUrl::toPercentEncoding( + // QString::fromStdString(http::client()->mxc_to_download_url(avatarUrl(user).toStdString()))); auto disp = QUrl::toPercentEncoding(displayName(user)); auto theme = UserSettings::instance()->theme(); if (theme == QStringLiteral("system")) @@ -3299,7 +3299,7 @@ TimelineModel::widgetLinks() const url.replace("$matrix_user_id", user); url.replace("$matrix_room_id", QUrl::toPercentEncoding(room_id_)); url.replace("$matrix_display_name", disp); - url.replace("$matrix_avatar_url", av); + // url.replace("$matrix_avatar_url", av); url.replace("$matrix_widget_id", QUrl::toPercentEncoding(QString::fromStdString(p.content.id))); |