Truncate large messages

This commit is contained in:
M66B
2020-02-14 11:06:48 +01:00
parent 10ae87d7cd
commit e0f7cc9fa7
5 changed files with 46 additions and 15 deletions

View File

@@ -1734,6 +1734,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
// Format message
if (show_full) {
if (HtmlHelper.truncate(document, false))
document.body()
.appendElement("p")
.appendElement("em")
.text(context.getString(R.string.title_truncated));
HtmlHelper.setViewport(document);
if (inline || show_images)
HtmlHelper.embedInlineImages(context, message.id, document);