mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Show inline images
(This is such a hack and will probably break, but it works for now for most cases...)
This commit is contained in:
parent
2c3d09edbb
commit
279bcd1bf2
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ TimelineModel::data(const QString &id, int role) const
|
||||||
if (isReply)
|
if (isReply)
|
||||||
formattedBody_ = formattedBody_.remove(replyFallback);
|
formattedBody_ = formattedBody_.remove(replyFallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
formattedBody_.replace("<img src=\"mxc://", "<img src=\"image://mxcImage/");
|
||||||
|
formattedBody_.replace("<img src=\"mxc://", "<img src=\"image://mxcImage/");
|
||||||
|
|
||||||
return QVariant(utils::replaceEmoji(
|
return QVariant(utils::replaceEmoji(
|
||||||
utils::linkifyMessage(utils::escapeBlacklistedHtml(formattedBody_))));
|
utils::linkifyMessage(utils::escapeBlacklistedHtml(formattedBody_))));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue