Use body in alt text of custom emoji
This commit is contained in:
parent
0897e4c062
commit
7742f12f30
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue