From bbb7a07e3c60302017c1028b5d9fb4986d1eb7e6 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 5 Oct 2021 19:13:28 +0200 Subject: [PATCH] Use message ID for duplicates --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 755afaa549..a85220e76a 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5356,10 +5356,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. Map> duplicates = new HashMap<>(); for (TupleMessageEx message : messages) if (message != null && - !TextUtils.isEmpty(message.hash)) { - if (!duplicates.containsKey(message.hash)) - duplicates.put(message.hash, new ArrayList<>()); - duplicates.get(message.hash).add(message); + !TextUtils.isEmpty(message.msgid)) { + if (!duplicates.containsKey(message.msgid)) + duplicates.put(message.msgid, new ArrayList<>()); + duplicates.get(message.msgid).add(message); } for (String hash : duplicates.keySet()) { List dups = duplicates.get(hash);