mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
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
|
@ -69,7 +69,7 @@ Popup {
|
|||
|
||||
onCompleterNameChanged: {
|
||||
if (completerName) {
|
||||
completer = TimelineManager.completerFor(completerName, room.roomId);
|
||||
completer = TimelineManager.completerFor(completerName, completerName == "room" ? "" : room.roomId);
|
||||
completer.setSearchString("");
|
||||
} else {
|
||||
completer = undefined;
|
||||
|
|
|
@ -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…
Reference in a new issue