mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Skip duplicate messages for auto expand/close
This commit is contained in:
parent
f035fdc419
commit
b0f639b58e
1 changed files with 2 additions and 6 deletions
|
@ -1305,9 +1305,7 @@ public class FragmentMessages extends FragmentEx {
|
|||
TupleMessageEx single = null;
|
||||
TupleMessageEx see = null;
|
||||
for (TupleMessageEx message : messages)
|
||||
if (!EntityFolder.ARCHIVE.equals(message.folderType) &&
|
||||
!EntityFolder.TRASH.equals(message.folderType) &&
|
||||
!EntityFolder.isOutgoing(message.folderType)) {
|
||||
if (!message.duplicate && !EntityFolder.TRASH.equals(message.folderType)) {
|
||||
autoCount++;
|
||||
single = message;
|
||||
if (!message.ui_seen) {
|
||||
|
@ -1339,9 +1337,7 @@ public class FragmentMessages extends FragmentEx {
|
|||
int count = 0;
|
||||
for (int i = 0; i < messages.size(); i++) {
|
||||
TupleMessageEx message = messages.get(i);
|
||||
if (!EntityFolder.ARCHIVE.equals(message.folderType) &&
|
||||
!EntityFolder.TRASH.equals(message.folderType) &&
|
||||
!EntityFolder.isOutgoing(message.folderType))
|
||||
if (!message.duplicate && !EntityFolder.TRASH.equals(message.folderType))
|
||||
count++;
|
||||
}
|
||||
Log.i(Helper.TAG, "Auto close=" + count);
|
||||
|
|
Loading…
Reference in a new issue