Prevent Droste effect

pull/194/merge
M66B 3 years ago
parent e4085c631c
commit 2c6e7fa900

@ -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…
Cancel
Save