Skip to content
Snippets Groups Projects
Unverified Commit fd25f6ee authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Merge pull request #934 from pavlukivan/master

use shortcode as a fallback for custom emote title
parents 8727b696 b90e39ec
No related branches found
No related tags found
No related merge requests found
Pipeline #2684 canceled
......@@ -60,7 +60,9 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
return QStringLiteral(
"<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">")
.arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
QString::fromStdString(images[index.row()].image.body));
!images[index.row()].image.body.empty()
? QString::fromStdString(images[index.row()].image.body)
: images[index.row()].shortcode);
case Roles::Url:
return QString::fromStdString(images[index.row()].image.url);
case CompletionModel::SearchRole:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment