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:
parent
879229b647
commit
4aa5bfa33d
1 changed files with 9 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue