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
@ -294,6 +294,10 @@ TimelineModel::data(const QString &id, int role) const
|
||||
if (isReply)
|
||||
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(
|
||||
utils::linkifyMessage(utils::escapeBlacklistedHtml(formattedBody_))));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user