summary refs log tree commit diff
path: root/src/CombinedImagePackModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-27 19:08:13 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-27 19:08:13 +0100
commit7742f12f3015bb2f155741083c2866f29b2992dc (patch)
tree1716361a787a8edad4255eff5f638ffbfda24b32 /src/CombinedImagePackModel.cpp
parentFix inclusion condition for overriden pack types (diff)
downloadnheko-7742f12f3015bb2f155741083c2866f29b2992dc.tar.xz
Use body in alt text of custom emoji
Diffstat (limited to 'src/CombinedImagePackModel.cpp')
-rw-r--r--src/CombinedImagePackModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CombinedImagePackModel.cpp b/src/CombinedImagePackModel.cpp
index 2a8959c0..47cb76ec 100644
--- a/src/CombinedImagePackModel.cpp
+++ b/src/CombinedImagePackModel.cpp
@@ -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: