mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-01 03:45:10 +00:00
Late draft handling
This commit is contained in:
parent
197762b9a3
commit
e235848876
1 changed files with 13 additions and 0 deletions
|
@ -4055,6 +4055,19 @@ class Core {
|
|||
|
||||
message = dup;
|
||||
process = true;
|
||||
} else if (dup.uid < uid && EntityFolder.DRAFTS.equals(folder.type)) {
|
||||
try {
|
||||
Message existing = ifolder.getMessageByUID(dup.uid);
|
||||
Log.e(folder.name + " late draft host=" + account.host +
|
||||
" uid=" + dup.uid + "<" + uid + " found=" + (existing != null));
|
||||
if (existing != null) {
|
||||
existing.setFlag(Flags.Flag.DELETED, true);
|
||||
expunge(context, ifolder, Arrays.asList(existing));
|
||||
db.message().setMessageUiHide(dup.id, true);
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue