1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Use first message in current folder as base for duplicates

This commit is contained in:
M66B 2021-01-13 20:40:41 +01:00
parent 879229b647
commit 4aa5bfa33d

View file

@ -4712,8 +4712,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
for (String hash : duplicates.keySet()) {
List<TupleMessageEx> dups = duplicates.get(hash);
for (int i = 1; i < dups.size(); i++)
dups.get(i).duplicate = true;
int base = 0;
for (int i = 0; i < dups.size(); i++)
if (dups.get(i).folder == folder) {
base = i;
break;
}
for (int i = 0; i < dups.size(); i++)
if (i != base)
dups.get(i).duplicate = true;
}
if (autoExpanded) {