Show inline images

(This is such a hack and will probably break, but it works for now for
most cases...)
pull/198/head
Nicolas Werner 5 years ago
parent 2c3d09edbb
commit 279bcd1bf2
  1. 4
      src/timeline/TimelineModel.cpp

@ -294,6 +294,10 @@ TimelineModel::data(const QString &id, int role) const
if (isReply)
formattedBody_ = formattedBody_.remove(replyFallback);
}
formattedBody_.replace("<img src=\"mxc:&#47;&#47;", "<img src=\"image://mxcImage/");
formattedBody_.replace("<img src=\"mxc://", "<img src=\"image://mxcImage/");
return QVariant(utils::replaceEmoji(
utils::linkifyMessage(utils::escapeBlacklistedHtml(formattedBody_))));
}

Loading…
Cancel
Save