diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 1c18988cdc..70501bef6e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3257,9 +3257,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. protected Void onExecute(Context context, Bundle args) { long id = args.getLong("id"); - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - boolean inline_images = prefs.getBoolean("inline_images", false); - DB db = DB.getInstance(context); try { db.beginTransaction(); @@ -3283,13 +3280,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (!message.content) EntityOperation.queue(context, message, EntityOperation.BODY); - if (inline_images) { - List attachments = db.attachment().getAttachments(message.id); - for (EntityAttachment attachment : attachments) - if (!attachment.available && attachment.isInline() && attachment.isImage()) - EntityOperation.queue(context, message, EntityOperation.ATTACHMENT, attachment.id); - } - if (account.auto_seen && !folder.read_only) EntityOperation.queue(context, message, EntityOperation.SEEN, true); }