Render custom emoji icons in the completion pane

This commit is contained in:
snow flurry
2024-04-07 19:40:02 +00:00
committed by Tobias Fella
parent f58c390a47
commit 70bff21632

View File

@@ -161,7 +161,7 @@ QVariant CustomEmojiModel::data(const QModelIndex &idx, int role) const
case Roles::ImageURL:
return QUrl(QStringLiteral("image://mxc/") + data.url.mid(6));
case Roles::MxcUrl:
return data.url.mid(6);
return m_connection->makeMediaUrl(QUrl(data.url));
default:
return {};
}