mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 00:21:10 +00:00
Prevent Droste effect
This commit is contained in:
parent
e4085c631c
commit
2c6e7fa900
2 changed files with 3 additions and 1 deletions
|
@ -2841,7 +2841,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
boolean auto_decrypt = prefs.getBoolean("auto_decrypt", false);
|
||||
if (auto_decrypt &&
|
||||
message.revision == null && // Prevent Droste effect
|
||||
(EntityMessage.PGP_SIGNENCRYPT.equals(message.encrypt) ||
|
||||
EntityMessage.SMIME_SIGNENCRYPT.equals(message.encrypt)))
|
||||
onActionDecrypt(message, true);
|
||||
|
|
|
@ -7156,6 +7156,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
if (attachments == null)
|
||||
return null;
|
||||
|
||||
if (auto && message.revision != null)
|
||||
return null;
|
||||
|
||||
InputStream in = null;
|
||||
OutputStream out = null;
|
||||
boolean inline = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue