mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Use message ID for duplicates
This commit is contained in:
parent
302c3c9f54
commit
bbb7a07e3c
1 changed files with 4 additions and 4 deletions
|
@ -5356,10 +5356,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
Map<String, List<TupleMessageEx>> 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<TupleMessageEx> dups = duplicates.get(hash);
|
||||
|
|
Loading…
Reference in a new issue