From ed29c0776c9e57a7c8f1066b9211e14c9def56cf Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 1 Sep 2019 14:27:48 +0200 Subject: [PATCH] Fallback to attachment type and size --- app/src/main/java/eu/faircode/email/MessageHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 7150199d2e..b160ea4ecd 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -899,8 +899,7 @@ public class MessageHelper { if (index < 0) for (int i = 0; i < remotes.size(); i++) { EntityAttachment remote = remotes.get(i); - if (remote.name == null && remote.cid == null && - Objects.equals(remote.type, local.type) && + if (Objects.equals(remote.type, local.type) && Objects.equals(remote.size, local.size)) { index = i; break;