mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Prevent duplicate messages
This commit is contained in:
parent
215bdb42b1
commit
2cf36bbaac
1 changed files with 5 additions and 3 deletions
|
@ -2088,7 +2088,7 @@ class Core {
|
|||
" uid=" + dup.uid + "/" + uid +
|
||||
" msgid=" + msgid + " thread=" + thread);
|
||||
|
||||
if (dup.uid == null) {
|
||||
if (dup.uid == null || dup.uid <= uid) {
|
||||
Log.i(folder.name + " set uid=" + uid);
|
||||
dup.uid = uid;
|
||||
dup.thread = thread;
|
||||
|
@ -2101,8 +2101,10 @@ class Core {
|
|||
dup.error = null;
|
||||
|
||||
message = dup;
|
||||
process = true;
|
||||
}
|
||||
update = true;
|
||||
process = (dup.uid == null);
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
||||
if (dup.flagged && dup.color != null)
|
||||
|
|
Loading…
Reference in a new issue