diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 9fa070c4df..9ab1a77d93 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -338,18 +338,14 @@ public class ServiceSynchronize extends LifecycleService { EntityFolder archive = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE); if (archive == null) archive = db.folder().getFolderByType(message.account, EntityFolder.TRASH); - if (archive != null) { - EntityOperation.queue(db, message, EntityOperation.SEEN, true); + if (archive != null) EntityOperation.queue(db, message, EntityOperation.MOVE, archive.id); - } break; case "trash": EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH); - if (trash != null) { - EntityOperation.queue(db, message, EntityOperation.SEEN, true); + if (trash != null) EntityOperation.queue(db, message, EntityOperation.MOVE, trash.id); - } break; case "ignore":