Add image previews in HTML messages

This commit is contained in:
miruka
2019-04-17 13:44:04 -04:00
parent d353e5bf6e
commit c4f46f42b6
4 changed files with 59 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ Row {
// (isOwn ? "  " + content : "")
text: (dict.formatted_body ?
Backend.htmlFilter.sanitize(dict.formatted_body) :
Backend.htmlFilter.filter(dict.formatted_body) :
dict.body) +
"&nbsp;&nbsp;<font size=" + smallSize + "px color=gray>" +
Qt.formatDateTime(date_time, "hh:mm:ss") +

View File

@@ -20,5 +20,9 @@ Rectangle {
clip: true
topMargin: space
bottomMargin: space
// Keep x scroll pages cached, to limit images having to be
// reloaded from network.
cacheBuffer: height * 6
}
}