Fixed archiving Gmail drafts

pull/207/head
M66B 2 years ago
parent 179ba33709
commit 89a632a51b

@ -1416,7 +1416,7 @@ class Core {
// Some providers do not support the COPY operation for drafts // Some providers do not support the COPY operation for drafts
boolean draft = (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type)); boolean draft = (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type));
boolean duplicate = (copy && !account.isGmail()); boolean duplicate = (copy && !account.isGmail()) || (draft && account.isGmail());
if (draft || duplicate) { if (draft || duplicate) {
Log.i(folder.name + " " + (duplicate ? "copy" : "move") + Log.i(folder.name + " " + (duplicate ? "copy" : "move") +
" from " + folder.type + " to " + target.type); " from " + folder.type + " to " + target.type);

Loading…
Cancel
Save