Use body in alt text of custom emoji

This commit is contained in:
Nicolas Werner 2021-12-27 19:08:13 +01:00
parent 0897e4c062
commit 7742f12f30
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
case CompletionModel::CompletionRole:
return QString("<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">")
.arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
images[index.row()].shortcode);
QString::fromStdString(images[index.row()].image.body));
case Roles::Url:
return QString::fromStdString(images[index.row()].image.url);
case CompletionModel::SearchRole: