|
|
@ -2554,6 +2554,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
args.putBoolean("signed_data", signed_data);
|
|
|
|
args.putBoolean("signed_data", signed_data);
|
|
|
|
|
|
|
|
|
|
|
|
Document document = JsoupEx.parse(file);
|
|
|
|
Document document = JsoupEx.parse(file);
|
|
|
|
|
|
|
|
HtmlHelper.cleanup(document);
|
|
|
|
|
|
|
|
|
|
|
|
// Add embedded messages
|
|
|
|
// Add embedded messages
|
|
|
|
for (EntityAttachment attachment : attachments)
|
|
|
|
for (EntityAttachment attachment : attachments)
|
|
|
@ -2600,7 +2601,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HtmlHelper.cleanup(document);
|
|
|
|
|
|
|
|
HtmlHelper.removeRelativeLinks(document);
|
|
|
|
HtmlHelper.removeRelativeLinks(document);
|
|
|
|
|
|
|
|
|
|
|
|
// Check for inline encryption
|
|
|
|
// Check for inline encryption
|
|
|
@ -4708,12 +4708,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
long id = args.getLong("id");
|
|
|
|
long id = args.getLong("id");
|
|
|
|
File file = EntityMessage.getFile(context, id);
|
|
|
|
File file = EntityMessage.getFile(context, id);
|
|
|
|
Document document = JsoupEx.parse(file);
|
|
|
|
Document document = JsoupEx.parse(file);
|
|
|
|
|
|
|
|
HtmlHelper.cleanup(document);
|
|
|
|
|
|
|
|
|
|
|
|
if (Boolean.TRUE.equals(message.plain_only) && monospaced_pre)
|
|
|
|
if (Boolean.TRUE.equals(message.plain_only) && monospaced_pre)
|
|
|
|
HtmlHelper.restorePre(document);
|
|
|
|
HtmlHelper.restorePre(document);
|
|
|
|
HtmlHelper.guessSchemes(document);
|
|
|
|
HtmlHelper.guessSchemes(document);
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
HtmlHelper.cleanup(document);
|
|
|
|
|
|
|
|
HtmlHelper.setViewport(document, overview_mode);
|
|
|
|
HtmlHelper.setViewport(document, overview_mode);
|
|
|
|
HtmlHelper.embedInlineImages(context, message.id, document, true);
|
|
|
|
HtmlHelper.embedInlineImages(context, message.id, document, true);
|
|
|
|
if (disable_tracking)
|
|
|
|
if (disable_tracking)
|
|
|
|